diff --git a/roles/pagure/templates/pagure.cfg b/roles/pagure/templates/pagure.cfg index 7905aea144..b5c28c7c4b 100644 --- a/roles/pagure/templates/pagure.cfg +++ b/roles/pagure/templates/pagure.cfg @@ -79,10 +79,10 @@ GIT_URL_GIT = 'https://pagure.io/' {% endif %} ### The IP addresses allowed for the internal endpoints -{% if eth0_ipv6 is defined %} -IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '{{ eth0_ip }}' , '{{ eth0_ipv6 }}'] -{% elif eth0_ip is defined %} -IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '{{ eth0_ip }}'] +{% if eth0_ipv6_ip is defined %} +IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '{{ eth0_ipv4_ip }}' , '{{ eth0_ipv6_ip }}'] +{% elif eth0_ipv4_ip is defined %} +IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '{{ eth0_ipv4_ip }}'] {% else %} IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1'] {% endif %}