Demo for building and using go-tun2socks
on iOS and Android.
If you're looking for an easy to use
tun2socks
implementation for iOS, you might be interested inleaf
andileaf
.leaf
implementstun2socks
and it's written in Rust, with significantly less memory usage and significantly better performance compares to the Go version.
- macOS (iOS)
- Xcode (iOS)
- SDK (Android)
- NDK (Android)
- make
- Go >= 1.11
- A C compiler (e.g.: clang, gcc)
- gomobile (https://github.com/golang/go/wiki/Mobile)
- Other common utilities (e.g.: git)
go get -d ./...
# Build an AAR
make android
# Build a Framework
make ios
# Both
make