mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-12 20:02:32 +00:00
21 lines
466 B
Go
21 lines
466 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package faketcp
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
type TCPConn struct{ *net.UDPConn }
|
|
|
|
// Dial connects to the remote TCP port,
|
|
// and returns a single packet-oriented connection
|
|
func Dial(network, address string) (*TCPConn, error) {
|
|
return nil, errors.New("faketcp is not supported on this platform")
|
|
}
|
|
|
|
func Listen(network, address string) (*TCPConn, error) {
|
|
return nil, errors.New("faketcp is not supported on this platform")
|
|
}
|