cybozu-go / transocks

Transparent SOCKS5 / HTTP proxy in Go
MIT License
467 stars 61 forks source link

编译成openwrt可执行文件可行性? #11

Closed dongnengyu closed 3 years ago

dongnengyu commented 5 years ago

打算用在openwrt路由器上面,不知可否

xixixihaha commented 4 years ago

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags="-s -w" github.com/cybozu-go/transocks/... CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -a -ldflags="-s -w" github.com/cybozu-go/transocks/...

Can be used on X86 openwrt system, change GOARCH for other architecture