()
| 360 | |
| 361 | |
| 362 | def print_server_help(): |
| 363 | print('''usage: ssserver [OPTION]... |
| 364 | A fast tunnel proxy that helps you bypass firewalls. |
| 365 | |
| 366 | You can supply configurations via either config file or command line arguments. |
| 367 | |
| 368 | Proxy options: |
| 369 | -c CONFIG path to config file |
| 370 | -s SERVER_ADDR server address, default: 0.0.0.0 |
| 371 | -p SERVER_PORT server port, default: 8388 |
| 372 | -k PASSWORD password |
| 373 | -m METHOD encryption method, default: aes-256-cfb |
| 374 | -t TIMEOUT timeout in seconds, default: 300 |
| 375 | -a ONE_TIME_AUTH one time auth |
| 376 | --fast-open use TCP_FASTOPEN, requires Linux 3.7+ |
| 377 | --workers WORKERS number of workers, available on Unix/Linux |
| 378 | --forbidden-ip IPLIST comma seperated IP list forbidden to connect |
| 379 | --manager-address ADDR optional server manager UDP address, see wiki |
| 380 | --prefer-ipv6 resolve ipv6 address first |
| 381 | |
| 382 | General options: |
| 383 | -h, --help show this help message and exit |
| 384 | -d start/stop/restart daemon mode |
| 385 | --pid-file PID_FILE pid file for daemon mode |
| 386 | --log-file LOG_FILE log file for daemon mode |
| 387 | --user USER username to run as |
| 388 | -v, -vv verbose mode |
| 389 | -q, -qq quiet mode, only show warnings/errors |
| 390 | --version show version information |
| 391 | |
| 392 | Online help: <https://github.com/shadowsocks/shadowsocks> |
| 393 | ''') |
| 394 | |
| 395 | |
| 396 | def _decode_list(data): |
no outgoing calls
no test coverage detected