This commit is contained in:
2021-03-24 19:09:05 +08:00
parent bf9887f693
commit aee908b7d5
+2 -2
View File
@@ -33,8 +33,8 @@ class Service extends Component
*/
public function instance(Packet|Websocket|Receive|null|Http $server): void
{
$service = Config::get('rpc', false, []);
if (empty($services)) {
$service = Config::get('rpc');
if (empty($service) || !is_array($service)) {
return;
}
$mode = $service['mode'] ?? SWOOLE_SOCK_TCP6;