mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: Make sure Tor mode is also set for DNS on SIGHUP.
* dirmngr/dns-stuff.c (enable_dns_tormode): Always succeed. (reload_dns_stuff): Reset tor port. * dirmngr/dirmngr.c (set_tor_mode): Also enable Tor mode for DNS. (main): Remove warning that Tor mode may not fully work. * dirmngr/server.c (cmd_dns_cert): Remove explicit Tor for DNS initialization. * dirmngr/t-dns-stuff.c (main): Remove option --new-circuit and error checking for enable_dns_tormode. -- This patch also resets the port on SIGHUP so that after starting Tor SIGHUP is sufficient to use Tor. Without the SIGHUP and when not using the Tor browser Dirmngr would keep on trying the Tor browser port. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0004d52ba2
commit
9695124016
5 changed files with 14 additions and 37 deletions
|
@ -481,6 +481,9 @@ set_tor_mode (void)
|
|||
{
|
||||
if (opt.use_tor)
|
||||
{
|
||||
/* Enable Tor mode and when called again force a new curcuit
|
||||
* (e.g. on SIGHUP). */
|
||||
enable_dns_tormode (1);
|
||||
if (assuan_sock_set_flag (ASSUAN_INVALID_FD, "tor-mode", 1))
|
||||
{
|
||||
log_error ("error enabling Tor mode: %s\n", strerror (errno));
|
||||
|
@ -919,13 +922,6 @@ main (int argc, char **argv)
|
|||
log_info ("NOTE: this is a development version!\n");
|
||||
#endif
|
||||
|
||||
if (opt.use_tor)
|
||||
{
|
||||
log_info ("WARNING: ***************************************\n");
|
||||
log_info ("WARNING: Tor mode (--use-tor) MAY NOT FULLY WORK!\n");
|
||||
log_info ("WARNING: ***************************************\n");
|
||||
}
|
||||
|
||||
/* Print a warning if an argument looks like an option. */
|
||||
if (!opt.quiet && !(pargs.flags & ARGPARSE_FLAG_STOP_SEEN))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue