@@ -173,8 +173,9 @@ |
||
173 | 173 | |
174 | 174 | static::$server = new $server($host, $port, $processType, $socketType); |
175 | 175 | |
176 | - if(intval($ssl_port) > 0) |
|
177 | - static::$server->listen($host, $ssl_port, SWOOLE_SOCK_TCP | SWOOLE_SSL ); |
|
176 | + if(intval($ssl_port) > 0) { |
|
177 | + static::$server->listen($host, $ssl_port, SWOOLE_SOCK_TCP | SWOOLE_SSL ); |
|
178 | + } |
|
178 | 179 | } |
179 | 180 | |
180 | 181 | /** |
@@ -108,8 +108,9 @@ |
||
108 | 108 | |
109 | 109 | $this->info('Starting swoole http server...'); |
110 | 110 | $this->info("Swoole http server started: <http://{$host}:{$port}>"); |
111 | - if(intval($ssl_port) > 0) |
|
112 | - $this->info("Swoole https server started: <https://{$host}:{$ssl_port}>"); |
|
111 | + if(intval($ssl_port) > 0) { |
|
112 | + $this->info("Swoole https server started: <https://{$host}:{$ssl_port}>"); |
|
113 | + } |
|
113 | 114 | |
114 | 115 | if ($this->isDaemon()) { |
115 | 116 | $this->info( |