Commit 606f7980 authored by 冯超鹏's avatar 冯超鹏

tcp链接

parent 38648822
Pipeline #61 failed with stages
......@@ -55,7 +55,7 @@ class swooleMeTcp extends Command
public function start()
{
$url = config('public.swooletcpurl');
$this->tcp = new \swoole_server('127.0.0.1', 9503);
$this->tcp = new \swoole_server('0.0.0.0', 9503);
$this->tcp->addlistener($url, 9504, SWOOLE_SOCK_TCP); // 添加 TCP端口监听
$this->tcp->addlistener($url, 9505, SWOOLE_SOCK_TCP); // 添加 TCP端口监听
$this->tcp->addlistener($url, 9506, SWOOLE_SOCK_TCP); // 添加 TCP端口监听
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment