mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
Adjust OCSP Stapling
This commit is contained in:
parent
ffd8fd1d8a
commit
a78db47571
8 changed files with 140 additions and 142 deletions
|
@ -283,7 +283,9 @@ func (c *TLSCertConfig) Build() (*tls.Certificate, error) {
|
|||
default:
|
||||
certificate.Usage = tls.Certificate_ENCIPHERMENT
|
||||
}
|
||||
|
||||
certificate.OcspStapling = c.OcspStapling
|
||||
|
||||
return certificate, nil
|
||||
}
|
||||
|
||||
|
@ -365,7 +367,9 @@ func (c *XTLSCertConfig) Build() (*xtls.Certificate, error) {
|
|||
default:
|
||||
certificate.Usage = xtls.Certificate_ENCIPHERMENT
|
||||
}
|
||||
|
||||
certificate.OcspStapling = c.OcspStapling
|
||||
|
||||
return certificate, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue