pufferffish / wireproxy

Wireguard client that exposes itself as a socks5 proxy
ISC License
4.11k stars 235 forks source link

Go 1.19 build fails #48

Closed artemklevtsov closed 1 year ago

artemklevtsov commented 1 year ago
❯ go version
go version go1.19 linux/amd64
❯ go build ./cmd/wireproxy
package github.com/octeep/wireproxy/cmd/wireproxy
        imports github.com/octeep/wireproxy
        imports golang.zx2c4.com/wireguard/tun/netstack
        imports gvisor.dev/gvisor/pkg/tcpip
        imports gvisor.dev/gvisor/pkg/atomicbitops
        imports gvisor.dev/gvisor/pkg/state
        imports gvisor.dev/gvisor/pkg/state/wire
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /home/user/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20211020211948-f76a604701b6/pkg/gohacks
pufferffish commented 1 year ago

This is because wireguard tun/netstack is still using an old version of gvisor. There is a PR that fixes this, but has not been merged to master yet: https://github.com/WireGuard/wireguard-go/pull/55

pufferffish commented 1 year ago

Support for go 1.19 has been added in https://github.com/octeep/wireproxy/commit/0e6333194a23a0d98b2ad2543083fb79478e2292.