Skip to content

Commit

Permalink
port fixes for custom ports
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Hazlett <[email protected]>
  • Loading branch information
ehazlett committed Jul 25, 2017
1 parent 3e832e8 commit 8602a2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ext/lb/utils/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,17 @@ func BackendAddress(cnt types.Container, backendOverrideAddress string) (string,
}
for _, port := range ports {
if port.PrivatePort == uint16(interlockPort) {
portDef.HostIP = port.IP
portDef.HostPort = fmt.Sprintf("%d", port.PublicPort)
break
}
}
}

if portDef.HostIP == "" || portDef.HostPort == "" {
return "", fmt.Errorf("unable to find ip or exposed port: %+v", portDef)
}

addr = fmt.Sprintf("%s:%s", portDef.HostIP, portDef.HostPort)
return addr, nil
}
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

var (
Version = "1.4.1"
Version = "1.4.2"

// Build will be overwritten automatically by the build system
Build = "-dev"
Expand Down

0 comments on commit 8602a2b

Please sign in to comment.