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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user