Skip to content

Commit

Permalink
Use 127.0.0.1 for desktop instead of localhost
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Feb 10, 2024
1 parent 79f72af commit 214d64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,7 @@ def prepare(isModApp = False):
signal(SIGUSR2, signal_recv)
set_process_name("mod-ui")

application.listen(DEVICE_WEBSERVER_PORT, address=("localhost" if DESKTOP else "0.0.0.0"))
application.listen(DEVICE_WEBSERVER_PORT, address=("127.0.0.1" if DESKTOP else "0.0.0.0"))

def checkhost():
if SESSION.host.readsock is None or SESSION.host.writesock is None:
Expand Down

0 comments on commit 214d64d

Please sign in to comment.