From 94059b415a9d52dcdc789a153be8e51508a60621 Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Mon, 4 Jul 2022 10:25:18 +0200 Subject: [PATCH] Typo --- locales/en.json | 4 ++-- src/utils/network.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locales/en.json b/locales/en.json index cf6a1a08a..b4de5e95a 100644 --- a/locales/en.json +++ b/locales/en.json @@ -225,10 +225,10 @@ "diagnosis_ip_broken_resolvconf": "Domain name resolution seems to be broken on your server, which seems related to /etc/resolv.conf not pointing to 127.0.0.1.", "diagnosis_ip_connected_ipv4": "The server is connected to the Internet through IPv4!", "diagnosis_ip_multiple_ipv4": "The server seems to have multiple public IPv4 adresses", - "diagnosis_ip_multiple_ipv4_details": "It could be because your server really has multiple IPv4 adresses, in this case YunoHost doesn't support this well especially for email delivery. But it could also be because one of your configured IP detection services is compromised. You can change them with yunohost settings set security.ipmirrors.v4", + "diagnosis_ip_multiple_ipv4_details": "It could be because your server really has multiple IPv4 adresses, in this case YunoHost doesn't support this well especially for email delivery. But it could also be because one of your configured IP detection service is compromised. You can change them with yunohost settings set security.ipmirrors.v4", "diagnosis_ip_connected_ipv6": "The server is connected to the Internet through IPv6!", "diagnosis_ip_multiple_ipv6": "The server seems to have multiple public IPv6 adresses", - "diagnosis_ip_multiple_ipv6_details": "It could be because your server really has multiple IPv6 adresses, in this case YunoHost doesn't support this well especially for email delivery. If you use vpnclient, you probably can fix it in the advanced config panel of vpnclient. But it could also be because one of your configured IP detection services is compromised. You can change them with yunohost settings set security.ipmirrors.v6", + "diagnosis_ip_multiple_ipv6_details": "It could be because your server really has multiple IPv6 adresses, in this case YunoHost doesn't support this well especially for email delivery. If you use vpnclient, you probably can fix it in the advanced config panel of vpnclient. But it could also be because one of your configured IP detection service is compromised. You can change them with yunohost settings set security.ipmirrors.v6", "diagnosis_ip_dnsresolution_working": "Domain name resolution is working!", "diagnosis_ip_global": "Global IP: {global}", "diagnosis_ip_local": "Local IP: {local}", diff --git a/src/utils/network.py b/src/utils/network.py index a76cc34b7..b5aec6747 100644 --- a/src/utils/network.py +++ b/src/utils/network.py @@ -110,7 +110,7 @@ def get_public_ips(protocol=4): ip_count = {} # Count the number of times an IP has appeared # Check URLS - for url in ip_url_yunohost_tab[0:3]: + for url in ip_url_yunohost_tab[:3]: logger.debug("Fetching IP from %s " % url) try: ip = download_text(url, timeout=15).strip()