Skip to content

Commit

Permalink
BUG/MINOR: bind upstreams on 127.0.0.1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmerGlass committed Oct 1, 2020
1 parent 535c3a7 commit 01c2993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consul/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ func (w *Watcher) buildUpstream(up api.Upstream, name string) *upstream {
ConnectTimeout: DefaultConnectTimeout,
}

if u.LocalBindAddress == "" {
u.LocalBindAddress = "127.0.0.1"
}

if p, ok := up.Config["protocol"].(string); ok {
u.Protocol = p
}
Expand Down

0 comments on commit 01c2993

Please sign in to comment.