Fix crash in case GetLocalIpAddress returns invalid
This commit is contained in:
1 parent
97921aab6e
commit
9697ac58d0
2 files changed
+5
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
|
||||
function GetLocalIpAddress() as string
|
||||
function GetLocalIpAddress() as dynamic
|
||||
if m.ipAddress = invalid or m.ipAddress = ""
|
||||
di = CreateObject("roDeviceInfo")
|
||||
ips = di.GetIPAddrs()
|
||||
|
||||
Reference in new issue
Block a user