fixed register ip

This commit is contained in:
weiz 2023-10-20 17:34:34 +08:00
parent e66e0d1a68
commit 6144dea271
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ class ImController extends BaseLikeAdminController
public function __construct(App $app)
{
parent::__construct($app);
Gateway::$registerAddress = "172.19.97.179:1236";
Gateway::$registerAddress = "172.19.97.179:1256";
}
//获取场景值

View File

@ -17,7 +17,7 @@ $worker->name = 'PushBusinessWorker';
$worker->count = 4;
// 服务注册地址
$worker->registerAddress = '127.0.0.1:1236';
$worker->registerAddress = '127.0.0.1:1256';
// 注册服务类
$worker->eventHandler = 'workerim\Events';

View File

@ -23,7 +23,7 @@ $gateway->lanIp = '172.19.97.179';
$gateway->startPort = 3900;
// 服务注册地址
$gateway->registerAddress = '127.0.0.1:1236';
$gateway->registerAddress = '127.0.0.1:1256';
// 心跳间隔
$gateway->pingInterval = 20;

View File

@ -6,7 +6,7 @@ use \GatewayWorker\Register;
require_once __DIR__ . '/../../vendor/autoload.php';
// register 必须是text协议切记不能将register端口开放给外网
$register = new Register('text://127.0.0.1:1236');
$register = new Register('text://127.0.0.1:1256');
// 如果不是在根目录启动则运行runAll方法
if(!defined('GLOBAL_START'))