mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 14:49:59 +00:00
TUN-4597: Add a QUIC server skeleton
- Added a QUIC server to accept streams - Unit test for this server also tests ALPN - Temporary echo capability for HTTP ConnectionType
This commit is contained in:
15
vendor/github.com/lucas-clemente/quic-go/conn_generic.go
generated
vendored
Normal file
15
vendor/github.com/lucas-clemente/quic-go/conn_generic.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// +build !darwin,!linux,!freebsd,!windows
|
||||
|
||||
package quic
|
||||
|
||||
import "net"
|
||||
|
||||
func newConn(c net.PacketConn) (connection, error) {
|
||||
return &basicConn{PacketConn: c}, nil
|
||||
}
|
||||
|
||||
func inspectReadBuffer(interface{}) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (i *packetInfo) OOB() []byte { return nil }
|
Reference in New Issue
Block a user