Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-17 23:06:24 +08:00
parent a5e40b2e8c
commit 0770429c93
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -68,6 +68,8 @@ func GetServerAddrs() (ret []string) {
if ContainerAndroid != Container && ContainerHarmony != Container {
// Android 上用不了 net.InterfaceAddrs() https://github.com/golang/go/issues/40569所以前面使用启动内核传入的参数 localIPs
ret = GetPrivateIPv4s()
} else {
ret = LocalIPs
}
ret = append(ret, LocalHost)