mirror of
https://github.com/qtgolang/SunnyNet.git
synced 2026-08-30 22:11:29 -07:00
2026-05-30
This commit is contained in:
@@ -173,8 +173,11 @@ func GetRequestClientIp(MessageId int) string {
|
|||||||
}
|
}
|
||||||
k.Lock.Lock()
|
k.Lock.Lock()
|
||||||
defer k.Lock.Unlock()
|
defer k.Lock.Unlock()
|
||||||
if k.Global.Drive().Name() == "tun" && runtime.GOOS == "android" {
|
loadDrive := k.Global.Drive()
|
||||||
return k.Conn.LocalAddr().String()
|
if loadDrive != nil {
|
||||||
|
if loadDrive.Name() == "tun" && runtime.GOOS == "android" {
|
||||||
|
return k.Conn.LocalAddr().String()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return k.Conn.RemoteAddr().String()
|
return k.Conn.RemoteAddr().String()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user