Skip to content

Commit eaaf330

Browse files
committed
Listen on 0.0.0.0 by default
1 parent 2f76857 commit eaaf330

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/dxcluster-client/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func RunApplication(ctx context.Context, args []string) int {
350350
}
351351

352352
srv := &http.Server{
353-
Addr: fmt.Sprintf(":%d", cfg.WebPort),
353+
Addr: fmt.Sprintf("0.0.0.0:%d", cfg.WebPort),
354354
Handler: router,
355355
}
356356

@@ -360,7 +360,7 @@ func RunApplication(ctx context.Context, args []string) int {
360360
log.Fatalf("FATAL: HTTP server failed: %v\n", err)
361361
}
362362
}()
363-
logging.Info("HTTP API listening on :%d (BaseURL: %s)", cfg.WebPort, cfg.BaseURL)
363+
logging.Info("HTTP API listening on 0.0.0.0:%d (BaseURL: %s)", cfg.WebPort, cfg.BaseURL)
364364

365365
// ═══════════════════════════════════════════════════════════════════════════
366366
// NOW connect DX clusters and start POTA polling - everything is ready!

0 commit comments

Comments
 (0)