From e64ce9bd1a44954c1ea695682c1689687cd9ec72 Mon Sep 17 00:00:00 2001 From: Rijnard van Tonder Date: Fri, 9 Nov 2018 22:16:02 -0500 Subject: [PATCH] Fix duplicate conditional check --- tests/modules/lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/lib/__init__.py b/tests/modules/lib/__init__.py index d45ccae4..f3e36b81 100644 --- a/tests/modules/lib/__init__.py +++ b/tests/modules/lib/__init__.py @@ -42,7 +42,7 @@ def urllib_read(query_url): if query_url.startswith('http://ipv'): if query_url.startswith('http://ipv4.icanhazip.com'): return '127.0.0.1' - elif query_url.startswith('http://ipv4.icanhazip.com'): + elif query_url.startswith('http://ipv6.icanhazip.com'): return '2001:4801:7818:6:abc5:ba2c:ff10:275f' elif query_url.startswith('http://geoip.nekudo.com/api/'): return '{"city":"Meppen","country":{"name":"Germany", "code":"DE"},"location":{"accuracy_radius":100,"latitude":52.6833,"longitude":7.3167,"time_zone":"Europe\/Berlin"},"ip":"82.145.55.16"}'