From 0760a77d59f93effa0dcf72b5a80e7ef3b443c99 Mon Sep 17 00:00:00 2001 From: chros Date: Sat, 19 Aug 2017 21:35:08 +0100 Subject: [PATCH] Disable CURL's built-in DNS cache if external one is available (Closes #127) --- ubuntu-14.04/home/chros73/.rtorrent-config.rc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ubuntu-14.04/home/chros73/.rtorrent-config.rc b/ubuntu-14.04/home/chros73/.rtorrent-config.rc index c0c1a79..d161944 100644 --- a/ubuntu-14.04/home/chros73/.rtorrent-config.rc +++ b/ubuntu-14.04/home/chros73/.rtorrent-config.rc @@ -3,6 +3,9 @@ ##### begin: rtorrent-ps_setup variables ##### +# Whether to use external DNS cache instead of the built-in one of CURL: [0|1] +method.insert = cfg.external_dnscache.use, value|private, 0 + # Set an interface with IPv4 address to bind to: [eth0|tun0] method.insert = cfg.interface.bind, string|const|private, (cat,"") @@ -241,8 +244,8 @@ network.http.capath.set = /etc/ssl/certs network.http.ssl_verify_host.set = 0 network.http.ssl_verify_peer.set = 0 -# CURL option to lower DNS timeout (default: 60) -network.http.dns_cache_timeout.set = 25 +# CURL option to disable built-in DNS cache if external DNS cache is used (default: 60) +branch = ((cfg.external_dnscache.use)), ((network.http.dns_cache_timeout.set,0)) # Encryption options (encryption), set to none (default) or any combination of the following: allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext # The example value allows incoming encrypted connections, starts unencrypted outgoing connections but retries with encryption if they fail, preferring plaintext to RC4 encryption after the encrypted handshake