From 53c70b72cef5fd09fab881e68bb6e5142b62f388 Mon Sep 17 00:00:00 2001 From: Marek Rost Date: Tue, 19 Jun 2018 18:11:41 +0200 Subject: [PATCH] Config fix, updated README --- README.md | 13 ++++++++----- config.php | 2 ++ start.php | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) 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: