mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
dd3e9d1ed0a5179f87beb6aa3bc4d101c94c52d8
Trojan-Go
Trojan proxy written in golang. It is compatiable with the original Trojan protocol and config file.
It's still currently in heavy development.
Build
Just make sure your golang version >= 1.11
git clone https://github.com/p4gefau1t/trojan-go.git
cd trojan-go
go build
You can cross-compile it by setting up the environment vars, for example
GOOS=windows GOARCH=386 go build -o trojan-go.exe
or
GOOS=linux GOARCH=amd64 go build -o trojan-go
Usage
./trojan-go -config your_awesome_config_file.json
The format of the configuration file is compatible, see here.
TODOs
- Server
- Client
- UDP Tunneling
- Transparent proxy
- Log
- Database support
- Mux
Languages
Go
98.2%
Makefile
1.3%
Dockerfile
0.3%
Shell
0.2%