Check for localhost

merge-requests/30/head
Bob Mottram 2021-01-25 11:51:42 +00:00
parent 192498859a
commit 7ac901980f
1 changed files with 2 additions and 1 deletions

View File

@ -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