reset vendor worker ip
This commit is contained in:
parent
6ee37ae389
commit
f9b081d4d4
@ -43,7 +43,7 @@ class BusinessWorker extends Worker
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public $registerAddress = '172.19.97.179:1256';
|
||||
public $registerAddress = '127.0.0.1:1236';
|
||||
|
||||
/**
|
||||
* 事件处理类,默认是 Event 类
|
||||
|
@ -83,7 +83,7 @@ class Gateway extends Worker
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public $registerAddress = '172.19.97.179:1256';
|
||||
public $registerAddress = '127.0.0.1:1236';
|
||||
|
||||
/**
|
||||
* 是否可以平滑重启,gateway 不能平滑重启,否则会导致连接断开
|
||||
|
@ -34,7 +34,7 @@ class Gateway
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public static $registerAddress = '172.19.97.179:1256';
|
||||
public static $registerAddress = '127.0.0.1:1236';
|
||||
|
||||
/**
|
||||
* 秘钥
|
||||
|
2
vendor/workerman/gatewayclient/Gateway.php
vendored
2
vendor/workerman/gatewayclient/Gateway.php
vendored
@ -36,7 +36,7 @@ class Gateway
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public static $registerAddress = '172.19.97.179:1256';
|
||||
public static $registerAddress = '127.0.0.1:1236';
|
||||
|
||||
/**
|
||||
* 秘钥
|
||||
|
2
vendor/workerman/gatewayclient/README.md
vendored
2
vendor/workerman/gatewayclient/README.md
vendored
@ -64,7 +64,7 @@ require_once '真实路径/vendor/autoload.php';
|
||||
* === 如果GatewayClient和GatewayWorker在同一台服务器 ===
|
||||
* GatewayClient和Register服务都在一台服务器上,ip填写127.0.0.1及即可,无需其它设置。
|
||||
**/
|
||||
Gateway::$registerAddress = '172.19.97.179:1256';
|
||||
Gateway::$registerAddress = '127.0.0.1:1236';
|
||||
|
||||
// GatewayClient支持GatewayWorker中的所有接口(Gateway::closeCurrentClient Gateway::sendToCurrentClient除外)
|
||||
Gateway::sendToAll($data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user