cli: support http proxy

This commit is contained in:
Thomas Tendyck 2025-04-16 11:05:32 +02:00 committed by Thomas Tendyck
parent a5a7cec11b
commit d6567ec52d
5 changed files with 7 additions and 7 deletions

View file

@ -67,6 +67,9 @@ func (d *Dialer) DialNoVerify(target string) (*grpc.ClientConn, error) {
}
func (d *Dialer) grpcWithDialer() grpc.DialOption {
if d.netDialer == nil {
return grpc.EmptyDialOption{}
}
return grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
return d.netDialer.DialContext(ctx, "tcp", addr)
})