项目作者: chaneyzorn

项目描述 :
为 ss-local 加载 gui-config.json
高级语言: Python
项目地址: git://github.com/chaneyzorn/ss-quick.git
创建时间: 2018-05-13T11:37:33Z
项目社区:https://github.com/chaneyzorn/ss-quick

开源协议:

下载


ss-quick

ss-quick 是一个为 ss-local 自动加载 gui-config.json 的工具。

它通过测试多个服务器的连接延迟,自动选择延迟最低的服务器,并输出为 ss-local 的选项。

你也可以直接指定要使用的服务器配置。

screenshot

USAGE

  1. ss-quick -h
  2. usage: ss-quick [-h] [-c CONFIG_FILE] [-n N]
  3. A tool to load gui-config.json for ss-local.
  4. optional arguments:
  5. -h, --help show this help message and exit
  6. -c CONFIG_FILE, --config-file CONFIG_FILE
  7. path to gui-config.json
  8. -n N choose (1-n)th config to start ss-local.
  9. --uri print config in the form of uri to stdout.
  10. --debug print debug information.

查看测试延迟:

  1. ss-quick -c /path/to/gui-config.json
  2. 12-26 21:42:39 INFO: Loading config file from /path/to/gui-config.json
  3. 12-26 21:42:39 INFO: Start Connection Latency Test
  4. [1] unreachable test1.host:test1线路
  5. [2] server not know test3.host:test2线路
  6. [3] 89.28 ms test4.host:test3线路
  7. [4] timeout test5.host:test4线路
  8. -s test3.host -p 1234 -k passwwwwwd -m aes-256-cfb

直接输出 flags 作为 ss-local 的启动参数:

  1. ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json`

选择第2个服务器:

  1. ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json -n2`

输出指定配置为 ss:// 形式的 uri :

  1. ss-quick -c /path/to/gui-config.json -n2 --uri

配合 qrcode 输出为二维码:

  1. qr `ss-quick -c /path/to/gui-config.json --uri`

BUG

  1. 如果线路列表过长,滚出终端显示范围的部分,测试延迟的结果将不会得到刷新。

License

MIT