mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-05-06 16:39:48 +08:00
Firm up what we consider to be a valid proxy spec.
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user