FlowerWrong / tun2socks

Redirect tun flow to socks 5 in golang, support tcp and udp.
420 stars 108 forks source link

Error while compiling in Windows #65

Open JayBitron opened 4 years ago

JayBitron commented 4 years ago
# github.com/FlowerWrong/tun2socks/tun2socks
..\tun2socks\stack.go:56:14: assignment mismatch: 2 variables but 1 values
..\tun2socks\stack.go:56:28: not enough arguments in call to fdbased.New
        have (*fdbased.Options)
        want (*water.Interface, *fdbased.Options)
..\tun2socks\stack.go:61:3: unknown field 'PacketDispatchMode' in struct literal of type fdbased.Options
..\tun2socks\tcp.go:22:19: not enough arguments in call to ep.Bind
        have (tcpip.FullAddress)
        want (tcpip.FullAddress, func() *tcpip.Error)
..\tun2socks\udp.go:28:19: not enough arguments in call to ep.Bind
        have (tcpip.FullAddress)
        want (tcpip.FullAddress, func() *tcpip.Error)
ghost commented 4 years ago

You'd better say "Error while compiling on Windows"