treesvc: Do not provide credentials unless TLS is used
ci/woodpecker/push/pre-commit Pipeline failed Details

4f413fe86e was perfect, except it did the opposite of what we needed.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/496/head
Evgenii Stratonikov 2023-07-05 17:07:52 +03:00 committed by Evgenii Stratonikov
parent f354b8a270
commit 6eefe9747e
1 changed files with 1 additions and 1 deletions

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()))
}