treesvc: Do not provide credentials unless TLS is used #492

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-tree-replicator into master 2023-07-06 08:04:36 +00:00

View file

@ -99,7 +99,7 @@ func dialTreeService(ctx context.Context, netmapAddr string) (*grpc.ClientConn,
), ),
} }
if netAddr.IsTLSEnabled() { if !netAddr.IsTLSEnabled() {
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials())) opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
} }