mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
♻️ Container 常量化
This commit is contained in:
parent
379e27aefe
commit
7f9c598061
7 changed files with 17 additions and 10 deletions
|
|
@ -87,7 +87,7 @@ func IsIDPattern(str string) bool {
|
|||
var LocalIPs []string
|
||||
|
||||
func GetLocalIPs() (ret []string) {
|
||||
if "android" == Container {
|
||||
if ContainerAndroid == Container {
|
||||
// Android 上用不了 net.InterfaceAddrs() https://github.com/golang/go/issues/40569,所以前面使用启动内核传入的参数 localIPs
|
||||
LocalIPs = append(LocalIPs, "127.0.0.1")
|
||||
LocalIPs = gulu.Str.RemoveDuplicatedElem(LocalIPs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue