This commit is contained in:
2021-10-29 18:28:39 +08:00
parent c7c97926f6
commit a47ca241c6
+2 -2
View File
@@ -54,11 +54,11 @@ use ReflectionException;
*/ */
protected function create(): array protected function create(): array
{ {
$content = swoole_get_local_ip()['eth0']; $content = current(swoole_get_local_ip());
return [ return [
"id" => uniqid("rpc.json.{$this->method}."), "id" => uniqid("rpc.json.{$this->method}."),
"name" => $this->method, "name" => $this->method,
"address" => swoole_get_local_ip()['eth0'], "address" => $content,
"port" => 9526, "port" => 9526,
"enableTagOverride" => true, "enableTagOverride" => true,
"check" => [ "check" => [