From dd6769954c4983b68cd6f8603a9046c80e7a5a65 Mon Sep 17 00:00:00 2001 From: roc Date: Tue, 26 Oct 2021 21:30:03 +0800 Subject: [PATCH] hotRelodaInterval --> hotReloadInterval --- transport/internet/xtls/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transport/internet/xtls/config.go b/transport/internet/xtls/config.go index c85dc250..bf5283ce 100644 --- a/transport/internet/xtls/config.go +++ b/transport/internet/xtls/config.go @@ -62,14 +62,14 @@ func (c *Config) BuildCertificates() []*xtls.Certificate { certs = append(certs, &keyPair) if !entry.OneTimeLoading { var isOcspstapling bool - hotRelodaInterval := uint64(3600) + hotReloadInterval := uint64(3600) if entry.OcspStapling != 0 { - hotRelodaInterval = entry.OcspStapling + hotReloadInterval = entry.OcspStapling isOcspstapling = true } index := len(certs) - 1 go func(entry *Certificate, cert *xtls.Certificate, index int) { - t := time.NewTicker(time.Duration(hotRelodaInterval) * time.Second) + t := time.NewTicker(time.Duration(hotReloadInterval) * time.Second) for { if entry.CertificatePath != "" && entry.KeyPath != "" { newCert, err := filesystem.ReadFile(entry.CertificatePath)