Skip to content

Commit

Permalink
use provided addr binding instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Jan 10, 2020
1 parent 4f9c719 commit 80d88ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ func run() error {
// Run a web service to offer IP checks for each member of the dispatcher set
if apiAddr != "" {
var srv http.Server
srv.Addr = apiAddr

go func() {
<-ctx.Done()
if err := srv.Shutdown(ctx); err != nil {
Expand Down

0 comments on commit 80d88ee

Please sign in to comment.