fix: make the gRPC gateway never use a proxy
Without this, if a proxy is set using the `https_proxy` environment
variable, the gRPC gateway attempts to use it to connect back to the
master's own listener, which typically breaks things. A proxy should
never be used for such connections.
@@ -88,6 +88,7 @@ func RegisterHTTPProxy(ctx context.Context, e *echo.Echo, port int, cert *tls.Ce
addr := fmt.Sprintf(":%d", port)
opts := []grpc.DialOption{
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(1 << 26)),
+ grpc.WithNoProxy(),
}
if cert == nil {
opts = append(opts, grpc.WithInsecure())
