Pārlūkot izejas kodu

fix http port parsing

Darien Raymond 8 gadi atpakaļ
vecāks
revīzija
10712b3235
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      proxy/http/server.go

+ 1 - 1
proxy/http/server.go

@@ -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