go-tun2socks icon indicating copy to clipboard operation
go-tun2socks copied to clipboard

编译错误

Open sagasm opened this issue 5 years ago • 1 comments

GOROOT=D:\Go #gosetup GOPATH=D:\GOPATH #gosetup D:\Go\bin\go.exe build -tags "d debug dnscache dnsfallback echo fakedns redirect shadownsocks socks v2ray windows" -o d:\gopath\bin\core_exe.exe -gcflags "all=-N -l" . #gosetup

github.com/mellow-io/go-tun2socks/proxy/socks

....\proxy\socks\tcp.go:181:4: cannot use process (type string) as type int64 in field value ....\proxy\socks\tcp.go:182:18: cannot use target.Network() (type string) as type int64 in field value ....\proxy\socks\tcp.go:183:27: cannot use conn.LocalAddr().String() (type string) as type []string in field value ....\proxy\socks\tcp.go:185:4: cannot use 0 (type untyped int) as type string in field value ....\proxy\socks\tcp.go:186:4: cannot use 0 (type untyped int) as type string in field value ....\proxy\socks\tcp.go:188:4: cannot use "" (type string) as type time.Time in field value ....\proxy\socks\tcp.go:188:4: too few values in stats.Session literal ....\proxy\socks\udp.go:204:5: cannot use process (type string) as type int64 in field value ....\proxy\socks\udp.go:205:29: cannot use conn.LocalAddr().Network() (type string) as type int64 in field value ....\proxy\socks\udp.go:206:28: cannot use conn.LocalAddr().String() (type string) as type []string in field value ....\proxy\socks\udp.go:206:28: too many errors

github.com/mellow-io/go-tun2socks/proxy/v2ray

....\proxy\v2ray\tcp.go:29:25: undefined: session.ProxyRecord ....\proxy\v2ray\tcp.go:65:3: undefined: session.InsertRecord

Compilation finished with exit code 2

sagasm avatar Aug 07 '20 15:08 sagasm

Delete main_socks when you build if you need not socks protocol

tomven1990 avatar Mar 30 '21 16:03 tomven1990