mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fixed unreachable code surrounding 'unix://' addresses.
This commit is contained in:
parent
fb4ffb269b
commit
318b365b8a
@ -235,12 +235,12 @@ def is_ipv6(addr):
|
|||||||
|
|
||||||
|
|
||||||
def parse_address(netloc, default_port=8000):
|
def parse_address(netloc, default_port=8000):
|
||||||
if netloc.startswith("unix:"):
|
|
||||||
return netloc.split("unix:")[1]
|
|
||||||
|
|
||||||
if netloc.startswith("unix://"):
|
if netloc.startswith("unix://"):
|
||||||
return netloc.split("unix://")[1]
|
return netloc.split("unix://")[1]
|
||||||
|
|
||||||
|
if netloc.startswith("unix:"):
|
||||||
|
return netloc.split("unix:")[1]
|
||||||
|
|
||||||
if netloc.startswith("tcp://"):
|
if netloc.startswith("tcp://"):
|
||||||
netloc = netloc.split("tcp://")[1]
|
netloc = netloc.split("tcp://")[1]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user