1 parent
362cf0d4cc
commit
8ee5f6083a
4 files changed
+9
-12
No files matched your search
@@ -78,10 +78,7 @@ func sslUpdateLoop() {
|
||||
|
||||
// 新增:HTTP 就绪探测(最多等待 ~90 秒)
|
||||
func waitHTTPReady() bool {
|
||||
port := 80
|
||||
if cfg := config.CurrentConfig(); cfg != nil && cfg.HttpPort > 0 {
|
||||
port = cfg.HttpPort
|
||||
}
|
||||
port := config.CurrentHTTPConfig().Port
|
||||
if port < 1 || port > 65535 {
|
||||
log.Warnf("invalid HTTP port %d, skipping SSL update this round", port)
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user