From 5aad4e66139681cb4c1fff0e154bde9bb862df28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 18 Mar 2021 16:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Snowflake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index a08c70f2..c1f147d9 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -263,7 +263,7 @@ class Snowflake */ public static function localhost(): mixed { - return Snowflake::app()->getFirstLocal(); + return current(swoole_get_local_ip()); }