|
|
@ -179,12 +179,10 @@ def run(
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|
|
|
|
|
|
|
|
### GET LOCAL URL
|
|
|
|
### GET LOCAL URL
|
|
|
|
|
|
|
|
|
|
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
|
|
s.connect(("8.8.8.8", 80))
|
|
|
|
s.connect(("8.8.8.8", 80))
|
|
|
|
ip_address = s.getsockname()[0]
|
|
|
|
ip_address = s.getsockname()[0]
|
|
|
|
s.close()
|
|
|
|
s.close()
|
|
|
|
|
|
|
|
|
|
|
|
url = f"http://{ip_address}:{server_port}"
|
|
|
|
url = f"http://{ip_address}:{server_port}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|