TLS -> ToS

This commit is contained in:
Jake Sanders 2019-10-14 12:04:49 +01:00
parent b701da6d69
commit a1b4786682

View File

@ -45,8 +45,8 @@ type Options struct {
Cache interface{}
}
// AcceptTLS indicates whether you accept your CA's terms of service
func AcceptTLS(b bool) Option {
// AcceptToS indicates whether you accept your CA's terms of service
func AcceptToS(b bool) Option {
return func(o *Options) {
o.AcceptToS = b
}
@ -78,7 +78,7 @@ func OnDemand(b bool) Option {
// Default uses the Let's Encrypt Production CA, with DNS Challenge disabled.
func Default() []Option {
return []Option{
AcceptTLS(true),
AcceptToS(true),
CA(LetsEncryptProductionCA),
OnDemand(true),
}