mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
CertificateObject: Enable auto-reload for cacert & Add buildChain & Fixes (#3607)
This commit is contained in:
parent
a342db3e28
commit
4531a7e228
5 changed files with 163 additions and 125 deletions
|
@ -385,6 +385,7 @@ type TLSCertConfig struct {
|
|||
Usage string `json:"usage"`
|
||||
OcspStapling uint64 `json:"ocspStapling"`
|
||||
OneTimeLoading bool `json:"oneTimeLoading"`
|
||||
BuildChain bool `json:"buildChain"`
|
||||
}
|
||||
|
||||
// Build implements Buildable.
|
||||
|
@ -423,6 +424,7 @@ func (c *TLSCertConfig) Build() (*tls.Certificate, error) {
|
|||
certificate.OneTimeLoading = c.OneTimeLoading
|
||||
}
|
||||
certificate.OcspStapling = c.OcspStapling
|
||||
certificate.BuildChain = c.BuildChain
|
||||
|
||||
return certificate, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue