mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-01 00:57:32 +01:00
proxy.certIgnoreTimestamp should only be downgradable
This commit is contained in:
parent
e5221167e1
commit
bcaf0bca96
@ -157,7 +157,9 @@ func (proxy *Proxy) StartProxy() {
|
|||||||
dlog.Fatal(err)
|
dlog.Fatal(err)
|
||||||
}
|
}
|
||||||
liveServers, err := proxy.serversInfo.refresh(proxy)
|
liveServers, err := proxy.serversInfo.refresh(proxy)
|
||||||
proxy.certIgnoreTimestamp = !(liveServers > 0)
|
if liveServers > 0 {
|
||||||
|
proxy.certIgnoreTimestamp = false
|
||||||
|
}
|
||||||
if proxy.showCerts {
|
if proxy.showCerts {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
@ -180,7 +182,9 @@ func (proxy *Proxy) StartProxy() {
|
|||||||
}
|
}
|
||||||
clocksmith.Sleep(delay)
|
clocksmith.Sleep(delay)
|
||||||
liveServers, _ = proxy.serversInfo.refresh(proxy)
|
liveServers, _ = proxy.serversInfo.refresh(proxy)
|
||||||
proxy.certIgnoreTimestamp = !(liveServers > 0)
|
if liveServers > 0 {
|
||||||
|
proxy.certIgnoreTimestamp = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user