fix: wireguard not working in CMFA

This commit is contained in:
wwqgtxx
2024-08-13 13:33:24 +08:00
parent c17d7c0281
commit 5bf22422d9
3 changed files with 14 additions and 15 deletions

View File

@@ -5,7 +5,6 @@ package dialer
import (
"context"
"net"
"net/netip"
"syscall"
)
@@ -13,7 +12,7 @@ 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) {
func dialContextHooked(ctx context.Context, dialer *net.Dialer, network string, address string) (net.Conn, error) {
return nil, nil
}