forked from TrueCloudLab/frostfs-node
treesvc: Do not provide credentials unless TLS is used
4f413fe86e
was perfect, except it did the opposite of what we needed.
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
f354b8a270
commit
6eefe9747e
1 changed files with 1 additions and 1 deletions
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue