mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-18 22:36:10 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0770429c93
commit
1958f59668
1 changed files with 1 additions and 1 deletions
|
|
@ -66,9 +66,9 @@ var LocalIPs []string
|
|||
|
||||
func GetServerAddrs() (ret []string) {
|
||||
if ContainerAndroid != Container && ContainerHarmony != Container {
|
||||
// Android 上用不了 net.InterfaceAddrs() https://github.com/golang/go/issues/40569,所以前面使用启动内核传入的参数 localIPs
|
||||
ret = GetPrivateIPv4s()
|
||||
} else {
|
||||
// Android 上用不了 net.InterfaceAddrs() https://github.com/golang/go/issues/40569,所以前面使用启动内核传入的参数 localIPs
|
||||
ret = LocalIPs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue