From d6a764261eb86db8b25c208f06231197d5964087 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sat, 28 Oct 2023 10:34:37 -0300 Subject: [PATCH] [commons.internet] enhancement: replacing 'google.com' by 'w3.org' --- CHANGELOG.md | 2 ++ bauh/commons/internet.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f3b088..3f851808 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## NEXT ### Improvements +- General + - replaced the internet checking old host (`google.com`) by a more general one (`w3.org`) [#300](https://github.com/vinifmor/bauh/issues/300) - UI - the "Skip" button on the initialization panel is now enabled after 10 seconds [#310](https://github.com/vinifmor/bauh/issues/310) diff --git a/bauh/commons/internet.py b/bauh/commons/internet.py index 4245191c..e52f1702 100644 --- a/bauh/commons/internet.py +++ b/bauh/commons/internet.py @@ -11,7 +11,7 @@ class InternetChecker: return False try: - socket.gethostbyname('google.com') + socket.gethostbyname("w3.org") return True except Exception: return False