Skip to content

Commit

Permalink
CTSP-1328: Do not register in Consul services that are exposed (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Slusarczyk authored May 10, 2019
1 parent b16b0a1 commit 7d91a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18-one-port-SR
v19-one-port-SR
2 changes: 1 addition & 1 deletion bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (b *Bridge) add(containerId string, quiet bool) {

isGroup := len(servicePorts) > 1
for _, port := range servicePorts {
if len(portApp) > 0 && port.ExposedPort != portApp {
if len(portApp) > 0 && port.HostPort != portApp {
if !quiet {
log.Println("ignored(not port_app):", container.ID[:12], "service on port", port.ExposedPort)
}
Expand Down

0 comments on commit 7d91a8b

Please sign in to comment.