From 873fb6c97b065e6641cc6673891d6f9d67e22018 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sun, 12 Oct 2025 22:57:27 +0200 Subject: [PATCH] test --- pkg/proxy/remotehost.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/proxy/remotehost.go b/pkg/proxy/remotehost.go index c921a0d..eedbcad 100644 --- a/pkg/proxy/remotehost.go +++ b/pkg/proxy/remotehost.go @@ -10,7 +10,6 @@ import ( messages "git.tornberg.me/go-cart-actor/pkg/messages" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" ) // RemoteHost mirrors the lightweight controller used for remote node @@ -28,8 +27,8 @@ type RemoteHost struct { func NewRemoteHost(host string) (*RemoteHost, error) { target := fmt.Sprintf("%s:1337", host) - - conn, err := grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials())) + var opts []grpc.DialOption + conn, err := grpc.NewClient(target, opts...) if err != nil { log.Printf("AddRemote: dial %s failed: %v", target, err)