1
0
Çatalla 0
şunun yansıması https://github.com/XTLS/Xray-core.git eşitlendi 2025-07-10 20:14:14 +00:00

Env: Add XRAY_LOCATION_CERT variable (#4536)

https://github.com/XTLS/Xray-core/issues/4531#issuecomment-2746155941

Fixes https://github.com/XTLS/Xray-core/issues/4531

---------

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
Bu işleme şunda yer alıyor:
patterniha 2025-03-24 16:26:48 +03:30 işlemeyi yapan: RPRX
ebeveyn 673a9ae063
işleme 2d3210e4b8
6 değiştirilmiş dosya ile 26 ekleme ve 5 silme

Dosyayı Görüntüle

@ -109,12 +109,12 @@ func setupOcspTicker(entry *Certificate, callback func(isReloaded, isOcspstaplin
for {
var isReloaded bool
if entry.CertificatePath != "" && entry.KeyPath != "" {
newCert, err := filesystem.ReadFile(entry.CertificatePath)
newCert, err := filesystem.ReadCert(entry.CertificatePath)
if err != nil {
errors.LogErrorInner(context.Background(), err, "failed to parse certificate")
return
}
newKey, err := filesystem.ReadFile(entry.KeyPath)
newKey, err := filesystem.ReadCert(entry.KeyPath)
if err != nil {
errors.LogErrorInner(context.Background(), err, "failed to parse key")
return