mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 20:07:37 +00:00
Fix lint
This commit is contained in:
@@ -418,13 +418,15 @@ func getHeadscaleCLIClient() (context.Context, v1.HeadscaleServiceClient, *grpc.
|
|||||||
|
|
||||||
if cfg.CLI.Insecure {
|
if cfg.CLI.Insecure {
|
||||||
tlsConfig := &tls.Config{
|
tlsConfig := &tls.Config{
|
||||||
|
// turn of gosec as we are intentionally setting
|
||||||
|
// insecure.
|
||||||
|
//nolint:gosec
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
grpcOptions = append(grpcOptions,
|
grpcOptions = append(grpcOptions,
|
||||||
grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)),
|
grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)),
|
||||||
)
|
)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
grpcOptions = append(grpcOptions,
|
grpcOptions = append(grpcOptions,
|
||||||
grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")),
|
grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")),
|
||||||
|
Reference in New Issue
Block a user