publishing the port is not required anymore
The autoproxy container is not requiring that port 80 must be published anymore. This is usefull in cases when again another proxy container is build up in front.
This commit is contained in:
parent
99cbd96be6
commit
5ea835e695
|
@ -135,9 +135,13 @@ def get_docker_id():
|
|||
|
||||
def get_listen_ips():
|
||||
inspect_data = client.inspect_container(get_docker_id())
|
||||
logging.info('count %s', len(inspect_data['NetworkSettings']['Ports']['80/tcp']))
|
||||
mappings = inspect_data['NetworkSettings']['Ports']['80/tcp']
|
||||
ips = []
|
||||
for data in inspect_data['NetworkSettings']['Ports']['80/tcp']:
|
||||
if mappings is None or len(mappings) == 0:
|
||||
ips.append('0.0.0.0')
|
||||
else:
|
||||
logging.info('count %s', len(mappings))
|
||||
for data in mappings:
|
||||
ips.append(data['HostIp'])
|
||||
return ips
|
||||
|
||||
|
|
Loading…
Reference in New Issue