Explorar el Código

fix http port parsing

Darien Raymond hace 8 años
padre
commit
10712b3235
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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