Compare commits
1
Commits
6cb7fae06a
...
agent-node
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9b41c7bcd |
+3
-3
@@ -14,10 +14,10 @@ class FirewallAuditor:
|
||||
self.table = "crowdsec"
|
||||
self.set_name = "0.0.0.0/0-cscli"
|
||||
self.API_KEY = os.getenv("BOUNCER_KEY")
|
||||
self.TRITON = "triton.beane.me"
|
||||
self.ZEPHYRUS = "zephyrus.beane.me"
|
||||
|
||||
def get_remote_lapi_truth(self):
|
||||
url = f"https://{self.TRITON}:8081/v1/decisions"
|
||||
url = f"https://{self.ZEPHYRUS}:8080/v1/decisions"
|
||||
headers = {"X-Api-Key": self.API_KEY}
|
||||
|
||||
try:
|
||||
@@ -46,7 +46,7 @@ class FirewallAuditor:
|
||||
return truth_map
|
||||
|
||||
except requests.exceptions.ConnectTimeout:
|
||||
logging.error("Connection to Triton timed out. Check if port 8081 is open on Triton's firewall.")
|
||||
logging.error("Connection to Zephyrus timed out. Check if port 8080 is open on Zephyrus's firewall.")
|
||||
return {}
|
||||
except Exception as e:
|
||||
logging.error(f"LAPI Sync Error: {e}")
|
||||
|
||||
Reference in new issue
Block a user