Skip to content

Commit

Permalink
Replaced localhost server binding to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartinol committed Sep 23, 2022
1 parent 0d67987 commit 4acef64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/exporter_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (s *ExporterService) Run() {
router.Path("/inventory").Queries("content-type", "{content-type}").Queries("ns-selector", "{ns-selector}").Queries("output", "{output}").HandlerFunc(s.inventoryHandler).Name("inventoryHandler")
router.Path("/inventory").HandlerFunc(s.inventoryHandler).Name("inventoryHandler")

url := fmt.Sprintf("localhost:%d", s.config.ServerPort())
url := fmt.Sprintf("0.0.0.0:%d", s.config.ServerPort())
logger.Infof("Starting listener as %s", url)
if err := http.ListenAndServe(url, router); err != nil {
logger.Fatal(err)
Expand Down

0 comments on commit 4acef64

Please sign in to comment.