mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 12:00:26 +08:00
OCSP支持过期时间
This commit is contained in:
@@ -70,7 +70,9 @@ func (this *OCSPUpdateTask) Loop() error {
|
||||
|
||||
for _, ocsp := range resp.SslCertOCSP {
|
||||
// 更新OCSP
|
||||
sharedNodeConfig.UpdateCertOCSP(ocsp.SslCertId, ocsp.Ocsp)
|
||||
if sharedNodeConfig != nil {
|
||||
sharedNodeConfig.UpdateCertOCSP(ocsp.SslCertId, ocsp.Data, ocsp.ExpiresAt)
|
||||
}
|
||||
|
||||
// 修改版本
|
||||
this.version = ocsp.Version
|
||||
@@ -82,11 +84,3 @@ func (this *OCSPUpdateTask) Loop() error {
|
||||
func (this *OCSPUpdateTask) Stop() {
|
||||
this.ticker.Stop()
|
||||
}
|
||||
|
||||
func (this *OCSPUpdateTask) updateOCSP(certId int64, ocsp []byte) {
|
||||
var config = sharedNodeConfig
|
||||
if config == nil {
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user