mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
bitwarden
This commit is contained in:
@@ -85,7 +85,11 @@ if not host in backups:
|
||||
print("Test connection")
|
||||
try:
|
||||
hm = socket.gethostbyaddr("omv.home.lan")
|
||||
|
||||
print(hm)
|
||||
ret = os.system(f"ping -c omv.home.lan")
|
||||
if ret != 0:
|
||||
print("Ip address responding")
|
||||
except socket.herror:
|
||||
print("Unknown host")
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user