Skip to content

Commit

Permalink
Better AcceptTOS error
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed Nov 7, 2024
1 parent 83606ee commit fc2b8fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ func New(cfg *Config, passphrase []byte) (*Proxy, error) {
}

p.certManager = &autocert.Manager{
Prompt: func(string) bool {
p.logError("AcceptTOS must be set in the config")
return false
},
Cache: autocertcache.New("autocert", store),
Email: cfg.Email,
}
Expand Down

0 comments on commit fc2b8fd

Please sign in to comment.