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
{
$content = swoole_get_local_ip()['eth0'];
$content = current(swoole_get_local_ip());
return [
"id" => uniqid("rpc.json.{$this->method}."),
"name" => $this->method,
"address" => swoole_get_local_ip()['eth0'],
"address" => $content,
"port" => 9526,
"enableTagOverride" => true,
"check" => [