mirror of https://github.com/v2ray/v2ray-core
fix http port parsing
parent
f39b9add63
commit
10712b3235
|
@ -54,7 +54,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) {
|
||||||
} else {
|
} else {
|
||||||
return net.Destination{}, err
|
return net.Destination{}, err
|
||||||
}
|
}
|
||||||
} else {
|
} else if len(rawPort) > 0 {
|
||||||
intPort, err := strconv.Atoi(rawPort)
|
intPort, err := strconv.Atoi(rawPort)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return net.Destination{}, err
|
return net.Destination{}, err
|
||||||
|
|
Loading…
Reference in New Issue