Subject: | use LWP/proxy to check Internet access |
Module::Signature uses Socket to try whether a connection to
a keyserver is possible. This is IMHO not a good way for all
those that have Internet access via a proxy (and not a direct one);
gpg and LWP work fine with a proxy (and honor the http_proxy
environment), so I'd like to see support for that in
Module::Signature as well:
something like (partially pseudo-code, sorry):
if($ENV{http_proxy}) {
require LWP;
# use LWP to check whether keyserver is accessible
if($CanConnect) {
$gpg_opt .= '--keyserver-options=auto-key-retrieve,honor-http-
proxy';
}
}
Thanks & best regards,
Marek