From 8b21b722f20ff0c34a7627c676553f778a9d8e64 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Fri, 21 Jul 2023 18:50:59 +0530 Subject: [PATCH] #167 hotfix forgot to add timeout to register too, as its one of the first web calls too --- fishy/version.txt | 2 +- fishy/web/web.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fishy/version.txt b/fishy/version.txt index aa49d36..3c7d01c 100644 --- a/fishy/version.txt +++ b/fishy/version.txt @@ -1 +1 @@ -0.5.19 \ No newline at end of file +0.5.20 \ No newline at end of file diff --git a/fishy/web/web.py b/fishy/web/web.py index 59de536..2042cdd 100644 --- a/fishy/web/web.py +++ b/fishy/web/web.py @@ -52,7 +52,7 @@ def logout(): def _register_user(): ip = get_ip(GoogleDnsProvider) body = {"ip": ip, "apiversion": apiversion} - response = requests.post(urls.user, json=body) + response = requests.post(urls.user, json=body, timeout=10) result = response.json() return result["uid"]