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
@@ -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/),
|
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).
|
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
|
## [0.7.0] - 2023-02-04
|
||||||
### Added
|
### Added
|
||||||
- A script to sync between Youtube profile and and Invidious profile
|
- A script to sync between Youtube profile and and Invidious profile
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
|
||||||
function GetLocalIpAddress() as string
|
function GetLocalIpAddress() as dynamic
|
||||||
if m.ipAddress = invalid or m.ipAddress = ""
|
if m.ipAddress = invalid or m.ipAddress = ""
|
||||||
di = CreateObject("roDeviceInfo")
|
di = CreateObject("roDeviceInfo")
|
||||||
ips = di.GetIPAddrs()
|
ips = di.GetIPAddrs()
|
||||||
|
|||||||
Reference in new issue
Block a user