Handle CLI wildcard addresses properly
If the local API instance is listening on a wildcard, connect to 127.0.0.1 instead.
This commit is contained in:
parent
90f965f516
commit
b16e2b4925
|
@ -87,6 +87,9 @@ def get_config(store_data, cluster=None):
|
||||||
host, port, scheme, api_key = read_from_yaml(cfgfile)
|
host, port, scheme, api_key = read_from_yaml(cfgfile)
|
||||||
else:
|
else:
|
||||||
return { 'badcfg': True }
|
return { 'badcfg': True }
|
||||||
|
# Handle an all-wildcard address
|
||||||
|
if host == '0.0.0.0':
|
||||||
|
host = '127.0.0.1'
|
||||||
else:
|
else:
|
||||||
# This is a static configuration, get the raw details
|
# This is a static configuration, get the raw details
|
||||||
host = cluster_details['host']
|
host = cluster_details['host']
|
||||||
|
|
Loading…
Reference in New Issue