skip ipaddress way to receive ip address

This commit is contained in:
Jakub Trllo 2023-01-06 18:09:17 +01:00
parent e1edb76f73
commit 1c530c0cb4

View file

@ -40,12 +40,6 @@ def get_host_ip():
except Exception:
pass
try:
import ipaddress
return socket.gethostbyname(str(ipaddress.ip_address(8888)))
except Exception:
pass
return None