diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-07 15:26:44 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-07 15:26:44 -0700 |
commit | 0bea42aaa30904b50837fd2f92e82766d940a7e9 (patch) | |
tree | 0c1537c817e2569536e09609094491fcb5e3048a | |
parent | 8114969fe3f3e0be81ef4470f53e68fd3ee2a358 (diff) | |
download | dsub-0bea42aaa30904b50837fd2f92e82766d940a7e9.tar.gz dsub-0bea42aaa30904b50837fd2f92e82766d940a7e9.tar.bz2 dsub-0bea42aaa30904b50837fd2f92e82766d940a7e9.zip |
Update Util.java
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 4 |
1 files changed, 3 insertions, 1 deletions
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; |