mirror of
https://github.com/syncthing/syncthing.git
synced 2026-11-20 09:01:23 -08:00
1 parent
f6df1a760d
commit
15d2dc3a4f
1 file changed
+7
-1
@@ -16,6 +16,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/lucas-clemente/quic-go"
|
||||
@@ -223,7 +224,12 @@ type stunConnQUICWrapper struct {
|
||||
underlying *net.UDPConn
|
||||
}
|
||||
|
||||
// SetReadBuffer is required by QUIC.
|
||||
// SetReadBuffer is required by QUIC < v0.20.0
|
||||
func (s *stunConnQUICWrapper) SetReadBuffer(size int) error {
|
||||
return s.underlying.SetReadBuffer(size)
|
||||
}
|
||||
|
||||
// SyscallConn is required by QUIC
|
||||
func (s *stunConnQUICWrapper) SyscallConn() (syscall.RawConn, error) {
|
||||
return s.underlying.SyscallConn()
|
||||
}
|
||||
Reference in new issue
Block a user