From c2b5808ca6ba592507bf49512f8c90883f74ece0 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 27 Apr 2020 00:02:17 +0200 Subject: Add tls-no-verify option to disallow certificate checks. Closes #3 --- pkg/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg') diff --git a/pkg/config/config.go b/pkg/config/config.go index 37dffcf..885b80e 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -40,6 +40,7 @@ type Options struct { Disable *bool `yaml:"disable"` IgnHash *bool `yaml:"ignore-hash"` AlwaysNew *bool `yaml:"always-new"` + NoTLS *bool `yaml:"tls-no-verify"` } func (opt *Options) mergeFrom(other Options) { @@ -58,6 +59,9 @@ func (opt *Options) mergeFrom(other Options) { if opt.Disable == nil { opt.Disable = other.Disable } + if opt.NoTLS == nil { + opt.NoTLS = other.NoTLS + } } // Default feed options @@ -72,6 +76,7 @@ func init() { IgnHash: &fal, AlwaysNew: &fal, Disable: &fal, + NoTLS: &fal, } } -- cgit v1.2.3-70-g09d2