mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 11:23:32 +02:00
common/ocsp: fix dropped error
This commit is contained in:
parent
1444552691
commit
06734d6f08
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ func GetOCSPStapling(cert [][]byte, path string) ([]byte, error) {
|
|||
ocspData, err := GetOCSPForFile(path)
|
||||
if err != nil {
|
||||
ocspData, err = GetOCSPForCert(cert)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !CheckOCSPFileIsNotExist(path) {
|
||||
err = os.Remove(path)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue