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)
|
||||
else:
|
||||
return { 'badcfg': True }
|
||||
# Handle an all-wildcard address
|
||||
if host == '0.0.0.0':
|
||||
host = '127.0.0.1'
|
||||
else:
|
||||
# This is a static configuration, get the raw details
|
||||
host = cluster_details['host']
|
||||
|
|
Loading…
Reference in New Issue