Skip to content

Commit

Permalink
Merge pull request #2096 from kinvolk/schu/mode-probe-port-fix
Browse files Browse the repository at this point in the history
prog/main: use flags.app.port for default target
  • Loading branch information
Alfonso Acosta authored Dec 16, 2016
2 parents 8e78c0c + 3f969f2 commit e70f2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func main() {
flags.probe.noApp = *noApp || *probeOnly

// Special case for #1191, check listen address is well formed
_, _, err := net.SplitHostPort(flags.app.listen)
_, port, err := net.SplitHostPort(flags.app.listen)
if err != nil {
log.Fatalf("Invalid value for -app.http.address: %v", err)
}
Expand All @@ -365,7 +365,7 @@ func main() {
args = append(args, defaultServiceHost)
}
} else if !flags.probe.noApp {
args = append(args, fmt.Sprintf("localhost:%d", xfer.AppPort))
args = append(args, fmt.Sprintf("localhost:%s", port))
}
args = append(args, flag.Args()...)
if !dryRun {
Expand Down

0 comments on commit e70f2b9

Please sign in to comment.