aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r--libmproxy/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py
index f3c36f8f..16540434 100644
--- a/libmproxy/utils.py
+++ b/libmproxy/utils.py
@@ -422,7 +422,7 @@ def parse_url(url):
def parse_proxy_spec(url):
p = parse_url(url)
- if not p:
+ if not p or not p[1]:
return None
return p[:3]