Skip to content

Commit

Permalink
Use dns:/// as the prefix for gRPC endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Feb 22, 2024
1 parent 8575c09 commit 7e49fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fpstore/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func RunGateway(c *cli.Context) error {
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`),
}
endpoint := net.JoinHostPort(GatewayServerHostFlag.Get(c), strconv.Itoa(GatewayServerPortFlag.Get(c)))
endpoint := "dns:///" + net.JoinHostPort(GatewayServerHostFlag.Get(c), strconv.Itoa(GatewayServerPortFlag.Get(c)))
err := gw.RegisterFingerprintStoreHandlerFromEndpoint(ctx, mux, endpoint, opts)
if err != nil {
return err
Expand Down

0 comments on commit 7e49fa5

Please sign in to comment.