diff --git a/README.md b/README.md index 97846f8..a66f613 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ This means that it keeps running in the foreground and accepts commands from You can pass the `--no-interaction` argument to disable this interactive mode so that it does not accept any commands from `STDIN`. +The interactive mode is always disabled on Windows, because it's impossible to +read from `STDIN` without blocking the whole daemon. ### Client configuration diff --git a/src/App.php b/src/App.php index 2ca4e76..9d6d319 100644 --- a/src/App.php +++ b/src/App.php @@ -65,7 +65,7 @@ public function start(array $args) 'socket' => 'socks://localhost:9050', 'measureTraffic' => true, 'measureTime' => true, - 'interactive' => !isset($args['no-interaction']) && !isset($args['n']) && defined('STDIN') && is_resource(STDIN), + 'interactive' => DIRECTORY_SEPARATOR === '/' && !isset($args['no-interaction']) && !isset($args['n']) && defined('STDIN') && is_resource(STDIN), ); $settings = $this->parseSocksSocket($args['socket']);