Skip to content

Commit

Permalink
make listener bind to 0.0.0.0 IP
Browse files Browse the repository at this point in the history
Signed-off-by: sriv <srikanth.ddit@gmail.com>
  • Loading branch information
sriv authored and Vinay Shankar Shukla committed Jun 3, 2020
1 parent 64942f5 commit 0035f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (l *httpListener) Start() {
if err != nil {
log.Fatalf(err.Error())
}
log.Fatal(http.ListenAndServe(fmt.Sprintf("127.0.0.1:%d", port), nil))
log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", port), nil))
}

func getPort() int {
Expand Down

0 comments on commit 0035f2b

Please sign in to comment.