mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
nginx way to set unix addresses
This commit is contained in:
parent
532d1fffaf
commit
160db1f521
@ -219,6 +219,9 @@ def parse_address(netloc, default_port=8000):
|
|||||||
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("unix:"):
|
if netloc.startswith("unix:"):
|
||||||
return netloc.split("unix:")[1]
|
return netloc.split("unix:")[1]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user