From 018ff8039a8962e2ae4ebd06f4c35f15c7fd0e09 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 17 Jul 2023 11:05:59 -0400 Subject: [PATCH] Dial insecure --- cmd/gateway/main.go | 4 +++- config/gateway.yaml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index 7f9a448..33737cc 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -41,7 +41,9 @@ func main() { } // Create the connection to the server. - conn, err := grpc.Dial(fmt.Sprintf("%s:%d", config.Server.Address, config.Server.Port)) + conn, err := grpc.Dial( + fmt.Sprintf("%s:%d", config.Server.Address, config.Server.Port), + grpc.WithInsecure()) if err != nil { log.Fatal(err) } diff --git a/config/gateway.yaml b/config/gateway.yaml index fdc30bb..4c3ac8d 100644 --- a/config/gateway.yaml +++ b/config/gateway.yaml @@ -4,4 +4,3 @@ server: address: localhost port: 8080 secret: secret - \ No newline at end of file