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:16:55 +02:00 committed by GitHub
parent 86d7ef0778
commit 15996aef11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ def get_public_ips(protocol=4):
for url in ip_url_yunohost_tab:
logger.debug("Fetching IP from %s " % url)
try:
ip = download_text(url, timeout=30).strip()
ip = download_text(url, timeout=15).strip()
if ip in ip_count.keys():
ip_count[ip]+=1
else: