Skip to content

Commit

Permalink
Fix: api:// error when Server not bind 0.0.0.0 (#495)
Browse files Browse the repository at this point in the history
resolve #477
  • Loading branch information
acooler15 authored Jan 21, 2024
1 parent 8d6b90d commit c2bcd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c2bcd70

Please sign in to comment.