diff options
Diffstat (limited to 'master/server/src/server.ts')
-rw-r--r-- | master/server/src/server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/master/server/src/server.ts b/master/server/src/server.ts index 4368b78..5774a2b 100644 --- a/master/server/src/server.ts +++ b/master/server/src/server.ts @@ -161,10 +161,12 @@ async function main() { } }); - const address = nw_interface_info.address; + const local_address = nw_interface_info.address; const port = 80; + const address = is_prod ? local_address : "localhost"; + await app.listen(port, address); console.log(`Listening on address http://${address}:${port}`); |