aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-18 09:49:26 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-18 09:49:26 -0800
commita8a19d4fcc46f8e4753d40e21b69e4df75f11535 (patch)
tree2b58a30587d8390d623a3648442c4b5b0e4a7828 /src
parent6301d84e1562156de47957d2c14fda82368f3ac0 (diff)
downloaddsub-a8a19d4fcc46f8e4753d40e21b69e4df75f11535.tar.gz
dsub-a8a19d4fcc46f8e4753d40e21b69e4df75f11535.tar.bz2
dsub-a8a19d4fcc46f8e4753d40e21b69e4df75f11535.zip
Fix not being able to clear out internal IP
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index b5524ccf..8ec90367 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -615,6 +615,11 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
public boolean onPreferenceChange(Preference preference, Object value) {
try {
String url = (String) value;
+ // Allow blank internal IP address
+ if("".equals(url) || url == null) {
+ return true;
+ }
+
new URL(url);
if (url.contains(" ") || url.contains("@") || url.contains("_")) {
throw new Exception();