Remove hardcoded ip address
This commit is contained in:
1 parent
aac579805b
commit
2abc5ce7a5
2 files changed
+8
-1
No files matched your search
@@ -99,7 +99,7 @@ namespace RokuYoutube.Services.Invidious
|
|||||||
invidiousHost = strReplace(API_URL, "https://", "http://")
|
invidiousHost = strReplace(API_URL, "https://", "http://")
|
||||||
scope = ":*"
|
scope = ":*"
|
||||||
|
|
||||||
localIp = "192.168.1.107"
|
localIp = GetLocalIpAddress()
|
||||||
webServerPort = 8888
|
webServerPort = 8888
|
||||||
expire = Now().AsSeconds() + 60 * 60 * 24 * 30 'A month from now
|
expire = Now().AsSeconds() + 60 * 60 * 24 * 30 'A month from now
|
||||||
|
|
||||||
|
|||||||
@@ -37,3 +37,10 @@ Function IsHD()
|
|||||||
return false
|
return false
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Function GetLocalIpAddress()
|
||||||
|
di = CreateObject("roDeviceInfo")
|
||||||
|
ips = di.GetIPAddrs()
|
||||||
|
for each ip in ips
|
||||||
|
return ips[ip]
|
||||||
|
end for
|
||||||
|
End Function
|
||||||
Reference in new issue
Block a user