This commit is contained in:
扶桑花间 2025-09-01 19:42:16 +08:00
parent 24f636cbc5
commit 5beb32e879
2 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class SysGateway extends Command
$gateway->lanIp = '127.0.0.1';
// 内部通讯起始端口。假如$gateway->count=2起始端口为2300
// 则一般会使用2300 2301 2个端口作为内部通讯端口
$gateway->startPort = 2300;
$gateway->startPort = (int)config('admin.gateway.startPort', 2300);
// 心跳间隔
$gateway->pingInterval = 10;
// 心跳数据

View File

@ -22,5 +22,6 @@ return [
'gateway' => [
'websocketAddress' => env('GATEWAY_WEBSOCKET_ADDRESS','0.0.0.0:19981'),
'registerAddress'=> env('GATEWAY_REGISTER_ADDRESS', '127.0.0.1:1236'),
'startPort' => (int)env('GATEWAY_START_PORT', 2300)
]
];