Skip to content

Commit

Permalink
fix (#3): expose on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Jan 22, 2024
1 parent e2eb539 commit e34c2a0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ func main() {
}
srv := &http.Server{
Addr: fmt.Sprintf(
"%s:%d",
func() string {
if FLEET_MODE {
return "0.0.0.0"
}
return "127.0.0.1"
}(),
":%d",
port,
),
Handler: mux,
Expand Down

0 comments on commit e34c2a0

Please sign in to comment.