mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
23 lines
468 B
Go
23 lines
468 B
Go
//go:build !(android && cmfa)
|
|
|
|
package dialer
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
"net/netip"
|
|
"syscall"
|
|
)
|
|
|
|
type SocketControl func(network, address string, conn syscall.RawConn) error
|
|
|
|
var DefaultSocketHook SocketControl
|
|
|
|
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
|
|
}
|