Sfoglia il codice sorgente

fix http port parsing

Darien Raymond 8 anni fa
parent
commit
10712b3235
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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