This commit is contained in:
2021-12-02 14:06:57 +08:00
parent 4ab6332176
commit b9e20051ef
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace Kiri\Core;
class Network
{
/**
* @return string
*/
public static function local(): string
{
return current(swoole_get_local_ip());
}
}