Prechádzať zdrojové kódy

fix: change score to lower

Dew-OF-Aurora 2 týždňov pred
rodič
commit
6e3e78ae50
4 zmenil súbory, kde vykonal 5 pridanie a 4 odobranie
  1. 1 0
      .gitignore
  2. 1 1
      config.example.json
  3. 2 2
      config.json
  4. 1 1
      scripts/domain_updater.py

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+runtime/

+ 1 - 1
config.example.json

@@ -103,7 +103,7 @@
         "order": "desc"
       }
     ],
-    "prefer_lower": false,
+    "prefer_lower": true,
     "within_hours": 24,
     "tie_breakers": [
       {

+ 2 - 2
config.json

@@ -76,7 +76,7 @@
         "weight": 0.05
       }
     ],
-    "prefer_lower": false,
+    "prefer_lower": true,
     "within_hours": 24,
     "tie_breakers": [
       {
@@ -91,7 +91,7 @@
   },
   "healthcheck": {
     "enabled": true,
-    "attempts": 2,
+    "attempts": 5,
     "timeout_ms": 1800,
     "port": 443,
     "tls_verify": true

+ 1 - 1
scripts/domain_updater.py

@@ -659,7 +659,7 @@ def single_tls_check(domain, timeout_ms, port, tls_verify=True):
 
 
 def check_domains(domains, hc_cfg):
-    attempts = int(hc_cfg.get("attempts", 2))
+    attempts = int(hc_cfg.get("attempts", 5))
     timeout_ms = int(hc_cfg.get("timeout_ms", 1800))
     port = int(hc_cfg.get("port", 443))
     tls_verify = bool(hc_cfg.get("tls_verify", True))