mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
fe7f6fe40275dabee365410d5bb0e1b92fb50331
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
- Forward
- NAT
- Client
- UDP Tunneling
- Transparent proxy
- Log
- Mux
- TLS Settings
- TLS redirecting
- non-TLS redirecting
- Cert utils
- Database support
- Traffic stats
Languages
Go
98.2%
Makefile
1.3%
Dockerfile
0.3%
Shell
0.2%