From b98d050c7bfb092bd1a291aec9d16a52e4dd0ec5 Mon Sep 17 00:00:00 2001 From: jasinco Date: Sun, 8 Jun 2025 23:02:24 +0800 Subject: [PATCH] use insecure explicitly --- internal/settings.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/settings.go b/internal/settings.go index 0153a53..6250849 100644 --- a/internal/settings.go +++ b/internal/settings.go @@ -8,6 +8,7 @@ import ( "strconv" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" "nim.jasinco.work/app/igapi" ) @@ -77,7 +78,7 @@ func ReadFromENV() error { } func IGAPI_establish() (*grpc.ClientConn, igapi.IGAPIClient) { - conn, err := grpc.NewClient(IGAPI_HOST) + conn, err := grpc.NewClient(IGAPI_HOST, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { log.Panicf("Can't connect to igapi: %s", err.Error()) }