From 0bea42aaa30904b50837fd2f92e82766d940a7e9 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 7 Aug 2014 15:26:44 -0700 Subject: Update Util.java --- src/github/daneren2005/dsub/util/Util.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index 10218d65..96a2a410 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -337,7 +337,9 @@ public final class Util { String serverUrl = prefs.getString(Constants.PREFERENCES_KEY_SERVER_URL + instance, null); if(allowAltAddress && Util.isWifiConnected(context)) { String SSID = prefs.getString(Constants.PREFERENCES_KEY_SERVER_LOCAL_NETWORK_SSID + instance, ""); - if("".equals(SSID) || SSID.equals(Util.getSSID(context))) { + + String[] parts = SSID.split(","); + if("".equals(SSID) || SSID.equals(Util.getSSID(context)) || Arrays.asList(parts).contains(SSID)) { String internalUrl = prefs.getString(Constants.PREFERENCES_KEY_SERVER_INTERNAL_URL + instance, null); if(internalUrl != null && !"".equals(internalUrl) && !"http://".equals(internalUrl)) { serverUrl = internalUrl; -- cgit v1.2.3