Add insecure option

Add option to not _validate_ if the certificate served from headscale is
trusted.
This commit is contained in:
Kristoffer Dalby
2022-02-13 08:41:49 +00:00
parent 4841e16386
commit 0018a78d5a
3 changed files with 28 additions and 9 deletions

7
app.go
View File

@@ -120,9 +120,10 @@ type DERPConfig struct {
}
type CLIConfig struct {
Address string
APIKey string
Timeout time.Duration
Address string
APIKey string
Timeout time.Duration
Insecure bool
}
// Headscale represents the base app of the service.