Avoid ridiculously low values for proxy.certRefreshDelay
This commit is contained in:
parent
0f7bd23b8a
commit
a31e7c0c61
|
@ -313,7 +313,7 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
|
|||
if config.ForceTCP {
|
||||
proxy.mainProto = "tcp"
|
||||
}
|
||||
proxy.certRefreshDelay = time.Duration(config.CertRefreshDelay) * time.Minute
|
||||
proxy.certRefreshDelay = time.Duration(Max(60, config.CertRefreshDelay)) * time.Minute
|
||||
proxy.certRefreshDelayAfterFailure = time.Duration(10 * time.Second)
|
||||
proxy.certIgnoreTimestamp = config.CertIgnoreTimestamp
|
||||
proxy.ephemeralKeys = config.EphemeralKeys
|
||||
|
|
Loading…
Reference in New Issue