update readme

This commit is contained in:
p4gefau1t
2020-04-21 02:43:48 -04:00
parent dd86debdcc
commit 19d068ce23
+27 -26
View File
@@ -10,8 +10,6 @@
[Telegram交流反馈群](https://t.me/trojan_go_chat)
### 下面的说明为简单介绍,完整配置教程和配置介绍参见[这里](https://p4gefau1t.github.io/trojan-go)。
Trojan-Go支持并且兼容原版Trojan-GFW的绝大多数功能,包括但不限于:
- TLS/SSL隧道传输
@@ -44,44 +42,47 @@ Trojan-Go支持并且兼容原版Trojan-GFW的绝大多数功能,包括但不
- 自动化HTTPS证书申请,使用ACME协议从Let's Encrypt自动申请和更新HTTPS证书
### 下面的说明为简单介绍,完整配置教程和配置介绍参见[Trojan-Go文档](https://p4gefau1t.github.io/trojan-go)。
## 使用方法
自动申请证书:
- 快速证书配置
```
sudo ./trojan-go -autocert request
```
- 自动申请证书
(**注意备份生成的证书和密钥,并确保其安全**)
```
sudo ./trojan-go -autocert request
```
为证书续期:
(**注意备份生成的证书和密钥,并确保其安全**)
```
sudo ./trojan-go -autocert renew
```
- 为证书续期
关于证书申请[更详细的说明](#证书申请)
```
sudo ./trojan-go -autocert renew
```
关于证书申请[更详细的说明](#证书申请)
快速启动服务器和客户端(简易模式)
- 快速启动服务器和客户端(简易模式)
服务端
- 服务端
```
sudo ./trojan-go server -remote 127.0.0.1:80 -local 0.0.0.0:443 -key ./your_key.key -cert ./your_cert.crt -password your_password
```
```
sudo ./trojan-go -server -remote 127.0.0.1:80 -local 0.0.0.0:443 -key ./your_key.key -cert ./your_cert.crt -password your_password
```
客户端
- 客户端
```
./trojan-go local -remote example.com -local 127.0.0.1:1080 -password your_password
```
```
./trojan-go local -remote example.com -local 127.0.0.1:1080 -password your_password
```
使用配置文件运行客户端/服务端/透明代理/中继:
- 使用配置文件启动客户端/服务端/透明代理/中继(一般模式)
```
./trojan-go -config 你的配置文件.json
```
```
./trojan-go -config 你的配置文件.json
```
## 特性
@@ -267,7 +268,7 @@ Trojan-Go的客户端内建一个简单实用的路由模块用以方便实现
## 构建
确保你的Golang版本 >= 1.13
确保你的Golang版本 >= 1.14,推荐使用snap安装Golang保持与上游同步。
```
git clone https://github.com/p4gefau1t/trojan-go.git