File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Application
1515 /**
1616 * @var string
1717 */
18- protected static $ version = '1.0.4 ' ;
18+ protected static $ version = '1.0.5 ' ;
1919
2020 public static function welcome ()
2121 {
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ public function __construct()
3232 $ config = config ('servers ' );
3333 $ httpConfig = $ config ['http ' ];
3434 $ this ->_config = $ httpConfig ;
35- if ($ httpConfig ['settings ' ]['only_simple_http ' ] ?? false ) {
35+ if (isset ( $ httpConfig ['settings ' ]['only_simple_http ' ]) ) {
3636 $ this ->_server = new HttpServer ($ httpConfig ['ip ' ], $ httpConfig ['port ' ], $ config ['mode ' ]);
3737 $ this ->_server ->on ('workerStart ' , [$ this , 'onSimpleWorkerStart ' ]);
3838 $ this ->_server ->on ('receive ' , [$ this , 'onReceive ' ]);
39+ unset($ httpConfig ['settings ' ]['only_simple_http ' ]);
3940 } else {
4041 $ this ->_server = new Server (
4142 $ httpConfig ['ip ' ],
You can’t perform that action at this time.
0 commit comments