mirror of
https://github.com/angolo40/mikrocata2selks.git
synced 2025-05-11 16:07:22 +00:00
Update mikrocata.py
fixed telegram notifications
This commit is contained in:
parent
98237f3b0c
commit
dbdfbdcc8e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user