mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-23 02:32:32 +00:00
22 lines
454 B
Go
22 lines
454 B
Go
// +build !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
|
|
}
|