This commit is contained in:
2021-02-04 18:32:45 +08:00
parent ec0d135207
commit dfb1e5be93
+3
View File
@@ -358,6 +358,9 @@ class Server extends Application
if ($this->isUse($config['port'])) {
return $this->error_stop($config['host'], $config['port']);
}
if (isset($config['settings']) && !empty($config['settings'])) {
$settings = array_merge($settings, $config['settings']);
}
$this->baseServer = new $class($config['host'], $config['port'], SWOOLE_PROCESS, $config['mode']);
$settings['daemonize'] = $this->daemon;
if (!isset($settings['pid_file'])) {