fix host for docker

This commit is contained in:
Dmitriy Pleshevskiy 2022-06-08 23:31:43 +03:00
parent 890c1f74ed
commit cd91329be0
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -18,7 +18,7 @@ async function main() {
} }
async function startServer(cfg: ServerConfig) { async function startServer(cfg: ServerConfig) {
const srv = Deno.listen({ hostname: "localhost", port: cfg.port }); const srv = Deno.listen({ hostname: "0.0.0.0", port: cfg.port });
log.info(`Server listening at http://localhost:${cfg.port}`); log.info(`Server listening at http://localhost:${cfg.port}`);
for await (const conn of srv) { for await (const conn of srv) {