add ip_version to webhook log

This commit is contained in:
Micky 2024-12-26 12:44:43 +11:00
parent 438cb99c46
commit 5f517e39e0

View File

@ -58,6 +58,6 @@ def execute():
# Send a webhook notification with client IP and command output
if not result['error'] and webhook:
send_webhook(webhook['url'], f"Client IP: `{request.remote_addr}`\nDevice: `{input_device}`\nCommand: `{input_command} {input_target}`")
send_webhook(webhook['url'], f"Client IP: `{request.remote_addr}`\nDevice: `{input_device}`\nCommand: `{input_command} -{ip_version} {input_target}`")
return result