Update core.py

pull/45/head
fr0stshard 2024-12-23 20:20:27 +02:00 committed by GitHub
parent d4a3b8164d
commit d8ddb73ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 11 deletions

View File

@ -87,17 +87,8 @@ class Web(root.Web):
)
if not url:
ip = (
"127.0.0.1"
if "DOCKER" not in os.environ
else subprocess.run(
["hostname", "-i"],
stdout=subprocess.PIPE,
check=True,
)
.stdout.decode("utf-8")
.strip()
)
# вырезана проверка на lavhost
ip = "127.0.0.1"
url = f"http://{ip}:{self.port}"