mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 06:46:09 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
a5e40b2e8c
commit
0770429c93
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue