]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log the correct proxy type on failure.
authorYawning Angel <yawning@schwanenlied.me>
Thu, 1 May 2014 03:43:53 +0000 (03:43 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Wed, 21 May 2014 08:14:39 +0000 (08:14 +0000)
get_proxy_addrport fills in proxy_type with the correct value, so there
is no point in logging something that's a "best guess" based off the
config.

src/or/connection.c

index ff8cdf1b4ad0cdba867f8206eb78e25301806a12..5069ed6412771e750014c25431a3fd1a93cc35b8 100644 (file)
@@ -4841,7 +4841,7 @@ log_failed_proxy_connection(connection_t *conn)
   log_warn(LD_NET,
            "The connection to the %s proxy server at %s just failed. "
            "Make sure that the proxy server is up and running.",
-           proxy_type_to_string(get_proxy_type()),
+           proxy_type_to_string(proxy_type),
            fmt_addrport(&proxy_addr, proxy_port));
 }