Add node to INTERNAL_IPS

This commit is contained in:
lcd1232 2020-09-30 11:14:21 +03:00 committed by GitHub
parent 1e924fac16
commit 86e9a90d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,8 @@ if env("USE_DOCKER") == "yes":
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
_, _, ips = socket.gethostbyname_ex("node")
INTERNAL_IPS.extend(ips)
{%- endif %} {%- endif %}
# django-extensions # django-extensions