proxy: drop tcptun and udptun, use tcp and udp instead

This commit is contained in:
nadoo committed 2020-11-29 15:09:44 +08:00
1 parent adfb2fb9b4
commit c9f3c20bc1
15 files changed
+49 -267

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ type Proxy interface {
Dial(network, addr string) (c net.Conn, dialer Dialer, err error)
// DialUDP connects to the given address via the proxy.
DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)
DialUDP(network, addr string) (pc net.PacketConn, dialer UDPDialer, writeTo net.Addr, err error)
// Get the dialer by dstAddr.
NextDialer(dstAddr string) Dialer