aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-01 11:21:14 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-01 11:21:14 -0400
commitf6ecda84005cc436c656e5fc7ed5b6dfe71a6ca8 (patch)
tree85ad8f5aff0723ff963880f5f97334de09e53afe /src/or/connection_edge.c
parent925ef048a977ccee0edb44ba68db2397b36d8c92 (diff)
parent4473271c66d69941d19592480174ebf32ff4bf5c (diff)
downloadtor-f6ecda84005cc436c656e5fc7ed5b6dfe71a6ca8.tar.gz
tor-f6ecda84005cc436c656e5fc7ed5b6dfe71a6ca8.zip
Merge remote-tracking branch 'public/bug18100_029' into maint-0.2.9
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index f033d17adb..53ade173df 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1910,8 +1910,8 @@ destination_from_socket(entry_connection_t *conn, socks_request_t *req)
socklen_t orig_dst_len = sizeof(orig_dst);
tor_addr_t addr;
-#ifdef TRANS_TRPOXY
- if (options->TransProxyType_parsed == TPT_TPROXY) {
+#ifdef TRANS_TPROXY
+ if (get_options()->TransProxyType_parsed == TPT_TPROXY) {
if (getsockname(ENTRY_TO_CONN(conn)->s, (struct sockaddr*)&orig_dst,
&orig_dst_len) < 0) {
int e = tor_socket_errno(ENTRY_TO_CONN(conn)->s);