diff --git a/login-mailer.sh b/login-mailer.sh index 67f264c..c93682b 100755 --- a/login-mailer.sh +++ b/login-mailer.sh @@ -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"