From 6a85df523b249e228620d5f227302e96c9ad8e7b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jul 2017 13:15:33 +0100 Subject: [PATCH] More keyserver checks --- src/freedombone-app-keyserver | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-app-keyserver b/src/freedombone-app-keyserver index 40b3c206..a31cf422 100755 --- a/src/freedombone-app-keyserver +++ b/src/freedombone-app-keyserver @@ -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