修改plugin.webman.channel.server端口号为2207
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user