mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-11 05:30:30 +08:00
TUN-3400: Use Go HTTP2 library as transport to connect with the edge
This commit is contained in:
14
origin/connection.go
Normal file
14
origin/connection.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package origin
|
||||
|
||||
import (
|
||||
"net"
|
||||
)
|
||||
|
||||
// persistentTCPConn is a wrapper around net.Conn that is noop when Close is called
|
||||
type persistentConn struct {
|
||||
net.Conn
|
||||
}
|
||||
|
||||
func (pc *persistentConn) Close() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user