mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-11 16:44:10 -04:00
@@ -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