Merge pull request #850 from micro/acmetypo

TLS -> ToS
This commit is contained in:
Asim Aslam 2019-10-14 12:10:55 +01:00 committed by GitHub
commit 1cea2f5bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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