mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
parent
e0ed1b3e49
commit
9f987155f3
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ func run(c *cli.Context) error {
|
||||||
|
|
||||||
var transport grpc.DialOption
|
var transport grpc.DialOption
|
||||||
if c.Bool("grpc-secure") {
|
if c.Bool("grpc-secure") {
|
||||||
transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("skip-insecure-grpc")}))
|
transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("grpc-skip-insecure")}))
|
||||||
} else {
|
} else {
|
||||||
transport = grpc.WithTransportCredentials(insecure.NewCredentials())
|
transport = grpc.WithTransportCredentials(insecure.NewCredentials())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue