github.com/kelleygo/clashcore@v1.0.2/component/dialer/patch_common.go (about) 1 //go:build !(android && cmfa) 2 3 package dialer 4 5 import ( 6 "context" 7 "net" 8 "net/netip" 9 "syscall" 10 ) 11 12 type SocketControl func(network, address string, conn syscall.RawConn) error 13 14 var DefaultSocketHook SocketControl 15 16 func dialContextHooked(ctx context.Context, network string, destination netip.Addr, port string) (net.Conn, error) { 17 return nil, nil 18 } 19 20 func listenPacketHooked(ctx context.Context, network, address string) (net.PacketConn, error) { 21 return nil, nil 22 }