diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-27 00:02:17 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-27 00:02:17 +0200 |
commit | c2b5808ca6ba592507bf49512f8c90883f74ece0 (patch) | |
tree | d1726aade2e189a6207ea7f8496023ac40b0cdf2 /pkg/config/config.go | |
parent | a3d2087107312c1816adbc3d25882d36eb5b7d9d (diff) | |
download | feed2imap-go-c2b5808ca6ba592507bf49512f8c90883f74ece0.tar.gz feed2imap-go-c2b5808ca6ba592507bf49512f8c90883f74ece0.tar.bz2 feed2imap-go-c2b5808ca6ba592507bf49512f8c90883f74ece0.zip |
Add tls-no-verify option to disallow certificate checks.
Closes #3
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r-- | pkg/config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
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, } } |