Bind HTTP server to 0.0.0.0 for remote access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Derick Phan 2026-03-25 23:38:15 -07:00
parent 175582914d
commit 20de39fc46
No known key found for this signature in database

2
app.py
View file

@ -30,7 +30,7 @@ def rns_request_handler(path, data, request_id, link_id, remote_identity, reques
def start_gateway(reticulum): def start_gateway(reticulum):
GatewayState.reticulum = reticulum GatewayState.reticulum = reticulum
GatewayState.local_dispatch = dispatch_request GatewayState.local_dispatch = dispatch_request
server = HTTPServer(("127.0.0.1", GATEWAY_PORT), GatewayHandler) server = HTTPServer(("0.0.0.0", GATEWAY_PORT), GatewayHandler)
thread = threading.Thread(target=server.serve_forever, daemon=True) thread = threading.Thread(target=server.serve_forever, daemon=True)
thread.start() thread.start()