1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-29 01:00:00 -04:00

fix http port parsing

This commit is contained in:
Darien Raymond
2017-11-03 13:03:51 +01:00
parent f39b9add63
commit 10712b3235

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