Skip to content

Commit

Permalink
fix: listen on all interfaces (0.0.0.0) by default
Browse files Browse the repository at this point in the history
Fixes #777
  • Loading branch information
chrisbenincasa committed Sep 17, 2024
1 parent 0171e93 commit aeddfd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export async function initServer(opts: ServerOptions) {

await updateXMLPromise;

const host = process.env['TUNARR_BIND_ADDR'] ?? 'localhost';
const host = process.env['TUNARR_BIND_ADDR'] ?? '0.0.0.0';

const url = await app
.addHook('onClose', async () => {
Expand Down Expand Up @@ -401,7 +401,9 @@ export async function initServer(opts: ServerOptions) {
port: opts.port,
});

logger.info(`HTTP server running on port: http://${host}:${opts.port}`);
logger.info(
`HTTP server listening on host:port: http://${host}:${opts.port}`,
);
const hdhrSettings = ctx.settings.hdhrSettings();
if (hdhrSettings.autoDiscoveryEnabled) {
await ctx.hdhrService.ssdp.start();
Expand Down

0 comments on commit aeddfd5

Please sign in to comment.