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):