mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-09-17 02:12:55 +02:00
build
This commit is contained in:
@@ -81,12 +81,12 @@ def ban_ip(args):
|
||||
update_response = data[2].put(
|
||||
update_url, json=payload_update, headers=headers, verify=False
|
||||
)
|
||||
print("Update response status:", update_response.text)
|
||||
return ("Update response status:", update_response.text)
|
||||
|
||||
|
||||
def run(data):
|
||||
try:
|
||||
ban_ip(data)
|
||||
return ban_ip(data)
|
||||
except:
|
||||
return f"{data.action} requested {data.ip}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user