diff --git a/internal/manager/manager.go b/internal/manager/manager.go index c79a2699..7ca46949 100644 --- a/internal/manager/manager.go +++ b/internal/manager/manager.go @@ -116,7 +116,7 @@ func RunNsmgr(ctx context.Context, configuration *config.Config) error { credentials.NewTLS(tlsconfig.MTLSClientConfig(m.source, m.source, tlsconfig.AuthorizeAny())), ), ), - grpc.WithDialer(func(s string, _ time.Duration) (net.Conn, error) { + grpc.WithContextDialer(func(ctx context.Context, s string) (net.Conn, error) { network, addr := grpcutils.TargetToNetAddr(s) return (&net.Dialer{Timeout: configuration.DialTimeout}).DialContext(ctx, network, addr) }),