Update server.py

fix the issue of being unable to access through the local IP address
This commit is contained in:
Keno Chou 2024-10-20 23:03:50 +08:00 committed by GitHub
parent f9f9faface
commit 4111d1dff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -833,6 +833,7 @@ class PromptServer():
scheme = "https" scheme = "https"
logging.info("Starting server\n") logging.info("Starting server\n")
addresses= ["0.0.0.0","8188"]
for addr in addresses: for addr in addresses:
address = addr[0] address = addr[0]
port = addr[1] port = addr[1]