shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go
Apache License 2.0
4.45k stars 1.39k forks source link

TCP Redirect doesn't work on MIPS64 platform? #170

Open KaraRyougi opened 4 years ago

KaraRyougi commented 4 years ago

I tried to cross-compile to my router (which is on MIPS64 architecture) using GOOS=linux GOARCH=mips64 go build. On my router, SOCKS5 proxy works perfectly fine. However, using tcp redirection shows the following error: tcp.go:63: failed to get target address: invalid argument

KaraRyougi commented 4 years ago

It seems addr, err := nfutil.GetOrigDst(tc, ipv6) doesn't work.

KaraRyougi commented 4 years ago

So basically it's about nfutil/socketcall_linux_other.go... I checked https://golang.org/src/syscall/syscall_linux_mips64x.go. Is it unfinished?

riobard commented 4 years ago

We do not test non-amd64 arch. You're on your own to figure it out. Pull requests are welcome.