Skip to content

Commit

Permalink
Use --insecure if SSL_FLAG is empty for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyaz committed Feb 28, 2021
1 parent e1ccf49 commit 5426c3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dn-vnstat.sh
Expand Up @@ -671,6 +671,10 @@ Generate_Email(){
} >> /tmp/mail.txt
fi

if [ -z "$SSL_FLAG" ]; then
SSL_FLAG="--insecure"
fi

#Send Email
/usr/sbin/curl -s --show-error --url "$PROTOCOL://$SMTP:$PORT" \
--mail-from "$FROM_ADDRESS" --mail-rcpt "$TO_ADDRESS" \
Expand Down

0 comments on commit 5426c3c

Please sign in to comment.