修改plugin.webman.channel.server端口号为2207

This commit is contained in:
2026-03-25 17:52:05 +08:00
parent 60833aa6ff
commit 6c6971c4bf
4 changed files with 40 additions and 6 deletions

View File

@@ -16,9 +16,15 @@
use Webman\Channel\Server;
use Workerman\Protocols\Frame;
$listenHost = env('WEBMAN_CHANNEL_LISTEN_HOST', '0.0.0.0');
$listenPort = filter_var(env('WEBMAN_CHANNEL_PORT'), FILTER_VALIDATE_INT);
if ($listenPort === false) {
$listenPort = 2207;
}
return [
'server' => [
'listen' => 'frame://0.0.0.0:2207',
'listen' => 'frame://' . $listenHost . ':' . $listenPort,
'protocol' => Frame::class,
'handler' => Server::class,
'reloadable' => false,