treesvc: Do not provide credentials unless TLS is used #492
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()))
|
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue