About
tun2socks with v2ray support for Android.
Building and using go-tun2socks for V2Ray on Android. This library is used in shadowsocksr-v2ray-android for support V2Ray.
Setup
- install go (test under version 1.15.2)
- install gomobile and init with
gomobile init -v - install JDK 8 (not jre)
- Download Android SDK and NDK (test under SDK 29 and NDK r21d)
Build
# proxy
export http_proxy=http://127.0.0.1:8087
export https_proxy=http://127.0.0.1:8087
# go
export GOPATH="~/go"
export PATH=$PATH:/usr/local/go/bin:~/go/bin
# android
export ANDROID_HOME=/path/to/Android/Sdk
export ANDROID_NDK_HOME=/path/to/Android/android-ndk-r21d
go get -d ./...
# Build an AAR
make android
# Build a Framework (not test)
make ios
# Both
makefrom https://github.com/xxf098/go-tun2socks-build(https://github.com/eycorsican/go-tun2socks-mobile)------go-tun2socks-ios
Demo for building and using go-tun2socks on iOS.
Prerequisites
- macOS
- Xcode
- 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)
Build
go get -d ./...
makefrom https://github.com/ameue/go-tun2socks-ios------ https://github.com/daheli/tun2socks-iOS https://github.com/johndpope/tun2socks-ios https://github.com/ponyChang/go-tun2socks-ios相关帖子:https://briteming.blogspot.com/2019/08/quickqservice-tun2socks.html
No comments:
Post a Comment