From c2bcd70509026ff08090ee223ce59405be201d6c Mon Sep 17 00:00:00 2001 From: acooler15 Date: Sun, 21 Jan 2024 15:15:55 +0800 Subject: [PATCH] Fix: api:// error when Server not bind 0.0.0.0 (#495) resolve #477 --- libs/fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fetcher.py b/libs/fetcher.py index df4572c7190..6058ce32c97 100644 --- a/libs/fetcher.py +++ b/libs/fetcher.py @@ -38,7 +38,7 @@ pycurl = None else: pycurl = None -local_host="http://localhost:" + str(config.port) +local_host = f'http://{config.bind}:{config.port}'.replace('0.0.0.0','localhost') NOT_RETYR_CODE = config.not_retry_code class Fetcher(object):