More keyserver checks

This commit is contained in:
Bob Mottram 2017-07-30 13:15:33 +01:00
parent 496667d47d
commit 6a85df523b
1 changed files with 8 additions and 0 deletions

View File

@ -382,6 +382,14 @@ function keyserver_sync {
if [ ${#other_keyserver_port} -lt 4 ]; then
return
fi
# Warn if trying to sync
if [[ "$other_keyserver_domain" == *"sks-keyservers.net" || "$other_keyserver_domain" == *"gnupg.net" || "$other_keyserver_domain" == *"pgp.com" || "$other_keyserver_domain" == *"pgp.mit.edu" || "$other_keyserver_domain" == *"the.earth.li" || "$other_keyserver_domain" == *"mayfirst.org" || "$other_keyserver_domain" == *"ubuntu.com" ]]; then
dialog --title $"Sync with other keyserver" \
--msgbox $"\nDon't try to sync with the major keyservers. Your system will be overloaded with an infeasible database size." 8 60
return
fi
if [[ "$other_keyserver_email" != "pgp-public-keys@" ]]; then
if [[ "$other_keyserver_email" == *"@"* ]]; then
if [[ "$other_keyserver_email" == *"."* ]]; then