mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-11-01 14:07:06 +01:00
build
This commit is contained in:
1 parent
802278266e
commit
e1a5b91286
1 file changed
+1
-1
@@ -36,7 +36,7 @@ def get_token(args):
|
||||
def ban_ip(args):
|
||||
"""Ban or unban IP address"""
|
||||
data = get_token(args)
|
||||
logging.info(f"received payload: {json.dumps(args)}")
|
||||
logging.info(f"received payload: {args}")
|
||||
headers = {"x-csrf-token": data[0]}
|
||||
|
||||
# Step 3: Update firewall group
|
||||
|
||||
Reference in new issue
Block a user