github.com/kelleygo/clashcore@v1.0.2/transport/hysteria/conns/faketcp/tcp_stub.go (about) 1 //go:build !linux || no_fake_tcp 2 // +build !linux no_fake_tcp 3 4 package faketcp 5 6 import ( 7 "errors" 8 "net" 9 ) 10 11 type TCPConn struct{ *net.UDPConn } 12 13 // Dial connects to the remote TCP port, 14 // and returns a single packet-oriented connection 15 func Dial(network, address string) (*TCPConn, error) { 16 return nil, errors.New("faketcp is not supported on this platform") 17 } 18 19 func Listen(network, address string) (*TCPConn, error) { 20 return nil, errors.New("faketcp is not supported on this platform") 21 }