Fix crash in case GetLocalIpAddress returns invalid

This commit is contained in:
Brahim Hadriche committed 2023-02-07 20:40:25 -05:00
1 parent 97921aab6e
commit 9697ac58d0
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Crash in case GetLocalIpAddress() returns invalid
## [0.7.0] - 2023-02-04
### Added
- A script to sync between Youtube profile and and Invidious profile
+1 -1
View File
@@ -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()