2023-11-17 23:12:10 +08:00
|
|
|
//go:build !(android && cmfa)
|
2023-11-17 13:19:24 +08:00
|
|
|
|
|
|
|
package dialer
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"net"
|
|
|
|
"net/netip"
|
2023-11-17 19:03:39 +08:00
|
|
|
"syscall"
|
2023-11-17 13:19:24 +08:00
|
|
|
)
|
|
|
|
|
2023-11-17 19:03:39 +08:00
|
|
|
type SocketControl func(network, address string, conn syscall.RawConn) error
|
|
|
|
|
|
|
|
var DefaultSocketHook SocketControl
|
|
|
|
|
2023-11-17 13:19:24 +08:00
|
|
|
func dialContextHooked(ctx context.Context, network string, destination netip.Addr, port string) (net.Conn, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func listenPacketHooked(ctx context.Context, network, address string) (net.PacketConn, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|