From 1e68194bf98ba2ce228a2e2a4e0f72d063503c1b Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Thu, 16 Apr 2020 10:20:27 +0000 Subject: [PATCH] handle 127.0.1.1 hostname resolution --- tests/test_nginx_vhosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py index a453f960..77f04243 100755 --- a/tests/test_nginx_vhosts.py +++ b/tests/test_nginx_vhosts.py @@ -105,7 +105,7 @@ def test_vhost( except Exception as e: ip_error = f"{domain} not resolved: {e}" else: - if ip != "127.0.0.1": + if ip != "127.0.0.1" and ip != "127.0.1.1": ip_warning = f"{domain} resolve to {ip} instead of 127.0.0.1" if ip_error: if resolution_ignored and domain in resolution_ignored: -- GitLab