Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 9bc04c7

Browse files
committed
use cryptography
1 parent eb0d20d commit 9bc04c7

File tree

10 files changed

+419
-290
lines changed

10 files changed

+419
-290
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ dev/
109109
env.sh
110110
dev.sh
111111
test_client.py
112+
113+
*.DS_Store

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
* 隧道对接视频教程: [地址](https://youtu.be/R4U0NZaMUeY)
1414

15-
1615
## 使用
1716

1817
* 安装
@@ -23,32 +22,40 @@ pip install aioshadowsocks
2322

2423
* 多用户配置
2524

26-
aioshadowsocks 将json作为配置文件,会读取当前目录下`userconfigs.json`作为默认的配置文件
25+
aioshadowsocks 将json作为配置文件, 会读取当前目录下 `userconfigs.json` 作为默认的配置文件
2726

28-
```json
27+
``` json
2928
{
3029
"users": [
3130
{
3231
"user_id": 1,
3332
"port": 2345,
34-
"method": "aes-256-cfb",
33+
"method": "none",
3534
"password": "hellotheworld1",
3635
"transfer": 104857600,
3736
"speed_limit": 0
37+
},
38+
{
39+
"user_id": 2,
40+
"port": 2346,
41+
"method": "chacha20-ietf-poly1305",
42+
"password": "hellotheworld2",
43+
"transfer": 104857600,
44+
"speed_limit": 384000
3845
}
3946
]
4047
}
4148
```
4249

43-
同时也支持从http服务器读取配置文件,这时需要注入环境变量`SS_API_ENDPOINT`作为读取配置的api地址
44-
* 注入环境变量
50+
同时也支持从http服务器读取配置文件,这时需要注入环境变量 `SS_API_ENDPOINT` 作为读取配置的api地址
4551

46-
`export SS_API_ENDPOINT="https://xxx/com"`
52+
* 注入环境变量
4753

54+
`export SS_API_ENDPOINT="https://xxx/com"`
4855

4956
* 启动ss服务器
5057

51-
```bash
58+
``` bash
5259
aioss run_ss_server
5360
```
5461

@@ -78,12 +85,11 @@ sudo chmod +x /usr/local/bin/docker-compose
7885
docker-compose up
7986
```
8087

81-
8288
## 为什么要重写shadowsocks
8389

84-
主要想通过这个项目的推进来深入了解 `asyncio`
90+
主要想通过这个项目的推进来深入了解 `asyncio`
8591

86-
另外我的一个项目: [django-sspanel](https://github.com/Ehco1996/django-sspanel) 依赖 `shadowsocksr`
92+
另外我的一个项目: [django-sspanel](https://github.com/Ehco1996/django-sspanel) 依赖 `shadowsocksr`
8793

8894
但该项目已经停止开发了,所以决定重新造个轮子
8995

@@ -118,7 +124,6 @@ docker-compose up
118124

119125
![](static/images/aead-chacha-20-ietf-poly-1305.png)
120126

121-
122127
## rpc proto
123128

124129
``` protobuf

0 commit comments

Comments
 (0)