From 385c3cae7e593ce6c17268f906502f5bdd0ffd74 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 29 Jun 2015 09:09:29 -0500 Subject: [PATCH] Revert "Revert "Support alternate address"" This reverts commit ef926f94e2a81f8d258884626264a18c275ee7d1. --- 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 @@ - + + +