Update src/utils/network.py

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
This commit is contained in:
theo-is-taken 2022-07-04 10:17:15 +02:00 committed by GitHub
parent 15996aef11
commit db10ac66c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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:
for url in ip_url_yunohost_tab[0:3]:
logger.debug("Fetching IP from %s " % url)
try:
ip = download_text(url, timeout=15).strip()