aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();