mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-03 00:23:06 +02:00
initial
This commit is contained in:
@ -25,7 +25,12 @@ def is_port_open(host, port):
|
|||||||
return True
|
return True
|
||||||
except socket.error:
|
except socket.error:
|
||||||
return False
|
return False
|
||||||
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
|
# doesn't even have to be reachable
|
||||||
|
s.connect(('192.168.77.1', 1))
|
||||||
|
IP = s.getsockname()[0]
|
||||||
|
print(IP)
|
||||||
|
input(" ??")
|
||||||
print(output)
|
print(output)
|
||||||
if int(output) > 0:
|
if int(output) > 0:
|
||||||
print("Running already!")
|
print("Running already!")
|
||||||
|
Reference in New Issue
Block a user