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()); }