]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 28 May 2023 09:36:18 +0000 (11:36 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 28 May 2023 09:36:18 +0000 (11:36 +0200)
- also ngrok-free.app is a testing/development ground, no productive/live
  instances will be found there
- please don't abuse their kind services for hosting a live instance!
- didn't log variable "instance", ops

fba.py
fetch_instances.py

diff --git a/fba.py b/fba.py
index af111d373914fda48a7f6727291c8166c85507e8..458f9f0d73e683027d2166f5040153500a79178c 100644 (file)
--- a/fba.py
+++ b/fba.py
@@ -24,7 +24,7 @@ blacklist = [
     # Flooder (?)
     "mastotroll.netz.org",
     # Testing/developing installations
-    "ngrok.io",
+    "ngrok.io", "ngrok-free.app",
 ]
 
 # Array with pending errors needed to be written to database
index 3e85543a4661c5cd5851a165db74263684628884..a53ef2213ef826c2b96a5858f168cd54d69daad4 100644 (file)
@@ -31,7 +31,7 @@ def fetch_instances(domain: str, origin: str, software: str):
             print("WARNING: Empty instance after tidyup(), domain:", domain)
             continue
         elif not validators.domain(instance.split("/")[0]):
-            print(f"WARNING: Bad instance='{domain} from domain='{domain}',origin='{origin}',software='{software}'")
+            print(f"WARNING: Bad instance='{instance}' from domain='{domain}',origin='{origin}',software='{software}'")
             continue
         elif fba.is_blacklisted(instance):
             # NOISY-DEBUG: print("DEBUG: instance is blacklisted:", instance)