From 7ac901980fdd2d7aa1e933046d995405d41be61c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Jan 2021 11:51:42 +0000 Subject: [PATCH] Check for localhost --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 35d68de22..232adfa55 100644 --- a/utils.py +++ b/utils.py @@ -23,7 +23,8 @@ from followingCalendar import addPersonToCalendar def _localNetworkHost(host: str) -> bool: """Returns true if the given host is on the local network """ - if host.startswith('192.') or \ + if host.startswith('localhost') or \ + host.startswith('192.') or \ host.startswith('127.') or \ host.startswith('10.'): return True