fix http port parsing

pull/684/merge
Darien Raymond 2017-11-03 13:03:51 +01:00
parent f39b9add63
commit 10712b3235
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) {
} else {
return net.Destination{}, err
}
} else {
} else if len(rawPort) > 0 {
intPort, err := strconv.Atoi(rawPort)
if err != nil {
return net.Destination{}, err