From 54c129d8dcbf27ec8f5117b46401a414fafe3b2e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 18 Jul 2004 21:47:04 +0000 Subject: abstract ORPort/SocksPort checks into server_mode(), proxy_mode(), clique_mode(), etc. Dont change underlying comments. svn:r2054 --- src/or/circuituse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuituse.c') diff --git a/src/or/circuituse.c b/src/or/circuituse.c index d6422d0b54..9627b271b8 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -299,7 +299,7 @@ void circuit_build_needed_circs(time_t now) { if(time_to_new_circuit < now) { circuit_reset_failure_count(); time_to_new_circuit = now + options.NewCircuitPeriod; - if(options.SocksPort) + if(proxy_mode()) client_dns_clean(); circuit_expire_old_circuits(); -- cgit v1.2.3-54-g00ecf