Update mikrocata.py

fixed telegram notifications
This commit is contained in:
Giuseppe 2024-02-27 13:41:06 +01:00 committed by GitHub
parent 98237f3b0c
commit dbdfbdcc8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,7 @@ def add_to_tik(alerts):
print(f"[Mikrocata] new ip added: {cmnt}")
if enable_telegram == True:
print(requests.get(sendTelegram("From: " + wanted_ip + "\nTo: " + src_ip + ":" + wanted_port + "\nRule: " + cmnt)).json())
print(requests.get(sendTelegram("From: " + wanted_ip + "\nTo: " + src_ip + ":" + str(wanted_port) + "\nRule: " + cmnt)).json())
except librouteros.exceptions.TrapError as e: