Browse Source

Dial insecure

master
parent
commit
018ff8039a
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 4
      cmd/gateway/main.go
  2. 1
      config/gateway.yaml

4
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)
}

1
config/gateway.yaml

@ -4,4 +4,3 @@ server:
address: localhost
port: 8080
secret: secret
Loading…
Cancel
Save