mirror of https://gitlab.com/bashrc2/epicyon
Check for localhost
parent
192498859a
commit
7ac901980f
3
utils.py
3
utils.py
|
@ -23,7 +23,8 @@ from followingCalendar import addPersonToCalendar
|
||||||
def _localNetworkHost(host: str) -> bool:
|
def _localNetworkHost(host: str) -> bool:
|
||||||
"""Returns true if the given host is on the local network
|
"""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('127.') or \
|
||||||
host.startswith('10.'):
|
host.startswith('10.'):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue