From 193ae44417fd543c3b6494e6c616faded8a9564f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 28 Jun 2015 21:41:05 -0500 Subject: [PATCH] Support alternate address For the same server, can switch from local to remote by enabling the option. --- resources/lib/UserClient.py | 4 ++++ resources/settings.xml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/lib/UserClient.py b/resources/lib/UserClient.py index 8cc363ab..0f97d516 100644 --- a/resources/lib/UserClient.py +++ b/resources/lib/UserClient.py @@ -96,6 +96,10 @@ class UserClient(threading.Thread): HTTPS = addon.getSetting('https') host = addon.getSetting('ipaddress') port = addon.getSetting('port') + # Alternate host + if addon.getSetting('altip') == "true": + host = addon.getSetting('secondipaddress') + server = host + ":" + port if host == "": diff --git a/resources/settings.xml b/resources/settings.xml index fd9facd4..32a2d37f 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,7 +2,9 @@ - + + +