Skip to content

Commit

Permalink
fix: unsupported option
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Oct 15, 2020
1 parent 6620d3b commit 0a2b98f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Application
/**
* @var string
*/
protected static $version = '1.0.4';
protected static $version = '1.0.5';

public static function welcome()
{
Expand Down
3 changes: 2 additions & 1 deletion src/Server/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ public function __construct()
$config = config('servers');
$httpConfig = $config['http'];
$this->_config = $httpConfig;
if ($httpConfig['settings']['only_simple_http'] ?? false) {
if (isset($httpConfig['settings']['only_simple_http'])) {
$this->_server = new HttpServer($httpConfig['ip'], $httpConfig['port'], $config['mode']);
$this->_server->on('workerStart', [$this, 'onSimpleWorkerStart']);
$this->_server->on('receive', [$this, 'onReceive']);
unset($httpConfig['settings']['only_simple_http']);
} else {
$this->_server = new Server(
$httpConfig['ip'],
Expand Down

0 comments on commit 0a2b98f

Please sign in to comment.