Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaneyzorn/ss-quick
为 ss-local 加载 gui-config.json
https://github.com/chaneyzorn/ss-quick
shadowsocks shadowsocks-libev
Last synced: about 2 months ago
JSON representation
为 ss-local 加载 gui-config.json
- Host: GitHub
- URL: https://github.com/chaneyzorn/ss-quick
- Owner: chaneyzorn
- Created: 2018-05-13T11:37:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T10:34:31.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T20:19:36.347Z (about 2 months ago)
- Topics: shadowsocks, shadowsocks-libev
- Language: Python
- Homepage:
- Size: 156 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ss-quick
ss-quick 是一个为 [`ss-local`](https://github.com/shadowsocks/shadowsocks-libev) 自动加载 `gui-config.json` 的工具。
它通过测试多个服务器的连接延迟,自动选择延迟最低的服务器,并输出为 `ss-local` 的选项。
你也可以直接指定要使用的服务器配置。
![screenshot](screenshot.gif)
# USAGE
```
ss-quick -h
usage: ss-quick [-h] [-c CONFIG_FILE] [-n N]A tool to load gui-config.json for ss-local.
optional arguments:
-h, --help show this help message and exit
-c CONFIG_FILE, --config-file CONFIG_FILE
path to gui-config.json
-n N choose (1-n)th config to start ss-local.
--uri print config in the form of uri to stdout.
--debug print debug information.
```查看测试延迟:
```
ss-quick -c /path/to/gui-config.json12-26 21:42:39 INFO: Loading config file from /path/to/gui-config.json
12-26 21:42:39 INFO: Start Connection Latency Test
[1] unreachable test1.host:test1线路
[2] server not know test3.host:test2线路
[3] 89.28 ms test4.host:test3线路
[4] timeout test5.host:test4线路-s test3.host -p 1234 -k passwwwwwd -m aes-256-cfb
```直接输出 flags 作为 ss-local 的启动参数:
```
ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json`
```选择第2个服务器:
```
ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json -n2`
```输出指定配置为 `ss://` 形式的 uri :
```
ss-quick -c /path/to/gui-config.json -n2 --uri
```配合 [qrcode](https://github.com/lincolnloop/python-qrcode) 输出为二维码:
```
qr `ss-quick -c /path/to/gui-config.json --uri`
```# BUG
1. 如果线路列表过长,滚出终端显示范围的部分,测试延迟的结果将不会得到刷新。
# License
MIT