Increase the cert refresh delay; make D1n0Bot happy
Decrease this for more reliability.
This commit is contained in:
parent
76e5a99a5c
commit
a364e51d9e
|
@ -51,7 +51,7 @@ func newConfig() Config {
|
|||
LogLevel: int(dlog.LogLevel()),
|
||||
ListenAddresses: []string{"127.0.0.1:53"},
|
||||
Timeout: 2500,
|
||||
CertRefreshDelay: 30,
|
||||
CertRefreshDelay: 360,
|
||||
CertIgnoreTimestamp: false,
|
||||
Cache: true,
|
||||
CacheSize: 256,
|
||||
|
@ -150,7 +150,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string, config_file string) error {
|
|||
proxy.certRefreshDelayAfterFailure = time.Duration(10 * time.Second)
|
||||
proxy.certIgnoreTimestamp = config.CertIgnoreTimestamp
|
||||
if len(config.ListenAddresses) == 0 {
|
||||
dlog.Debugf("No local IP/port configured")
|
||||
dlog.Errorf("No local IP/port configured")
|
||||
}
|
||||
proxy.listenAddresses = config.ListenAddresses
|
||||
proxy.daemonize = config.Daemonize
|
||||
|
|
|
@ -76,7 +76,7 @@ timeout = 2500
|
|||
|
||||
## Delay, in minutes, after which certificates are reloaded
|
||||
|
||||
cert_refresh_delay = 30
|
||||
cert_refresh_delay = 360
|
||||
|
||||
|
||||
## Fallback resolver
|
||||
|
|
Loading…
Reference in New Issue