Explorar el Código

fix double port issue on grpc client

Alexander Belanger hace 4 años
padre
commit
9d069eff08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      provisioner/client/client.go

+ 1 - 1
provisioner/client/client.go

@@ -34,7 +34,7 @@ func NewClient(baseURL, token string, tokenID uint) (*Client, error) {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
-	conn, err := grpc.Dial(fmt.Sprintf("%s:%s", parsedURL.Host, parsedURL.Port()), grpc.WithInsecure())
+	conn, err := grpc.Dial(parsedURL.Host, grpc.WithInsecure())
 
 
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err