diff --git a/README.md b/README.md index 119352b..44411a1 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,18 @@ Socks5 proxy written in PHP based on [workerman](https://github.com/walkor/Worke 2. ```composer install``` +## Config +Edit file ```config.php``` + ## Start -php start.php start -d +```php start.php start -d``` ## Stop -php start.php stop +```php start.php stop``` ## Status -php start.php status +```php start.php status``` -## Other links -https://github.com/walkor/shadowsocks-php +## Other links +https://github.com/walkor/shadowsocks-php https://github.com/walkor/php-http-proxy diff --git a/config.php b/config.php index 540540a..8f9188b 100644 --- a/config.php +++ b/config.php @@ -1,3 +1,5 @@ +onConnect = function($connection) }; $worker->onMessage = function($connection, $buffer) { + global $AUTH_ENABLED, $USERNAME, $PASSWORD; switch($connection->stage) { case STAGE_INIT: