treesvc: Do not provide credentials unless TLS is used
Some checks failed
Build / Build Components (1.20) (pull_request) Successful in 3m53s
Build / Build Components (1.19) (pull_request) Successful in 4m0s
Tests and linters / Tests (1.19) (pull_request) Successful in 3m4s
ci/woodpecker/pr/pre-commit Pipeline failed
Tests and linters / Lint (pull_request) Successful in 3m33s
Tests and linters / Tests with -race (pull_request) Successful in 4m29s
Tests and linters / Tests (1.20) (pull_request) Successful in 11m59s

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:
Evgenii Stratonikov 2023-07-05 17:07:52 +03:00
parent b520a3049e
commit 7e710953ed

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