all i needed was -L to make it work

This commit is contained in:
yigid balaban 2024-10-05 16:27:09 +03:00
parent f06ce051d2
commit 2060174be5
Signed by: fyb
GPG Key ID: CF1BBD1336C0A3D6

View File

@ -39,7 +39,7 @@ if echo "$NEW_LINES" | grep -q "sshd.*Accepted"; then
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Content-Type: application/json" \
-d "$JSON_PAYLOAD" \
"$ENDPOINT")
-L "$ENDPOINT")
if [[ "$RESPONSE_CODE" -ne 200 ]]; then
log_message "Failed to send login alert. Response code: $RESPONSE_CODE"