ifeeline / shadowsocks
PHP Shadowsocks Client With Workerman or Swoole
dev-master / 1.0.x-dev
2017-10-05 12:44 UTC
Requires
- php: >=5.5.9
- workerman/workerman: ^3.5
This package is not auto-updated.
Last update: 2024-11-20 03:17:55 UTC
README
安装:
composer require ifeeline/shadowsocks
配置格式:
$config = [ 'local_ip' => '127.0.0.1', 'local_port' => 1080, 'process_count' => 12, 'method' => 'aes-256-cfb', 'password' => '123456789', 'servers' => [ [ 'ip' => '1.1.1.1', 'port' => 8388 ], [ 'ip' => '2.2.2.2', 'port' => 8388 ] ] ];
用法:
注:每次链接,会随机从$servers中选择一个SERVER进行链接。