aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relaycell.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2017-11-03 23:00:27 +0100
committerSebastian Hahn <sebastian@torproject.org>2017-11-04 18:30:59 +0100
commit5a46074e550229e6c19eac9625b26af346b487fc (patch)
treec6d062a54ed45e0fb2f35c128d328a5e4555350a /src/test/test_relaycell.c
parent0386280487fce78b73e060234f515b850af9c589 (diff)
downloadtor-5a46074e550229e6c19eac9625b26af346b487fc.tar.gz
tor-5a46074e550229e6c19eac9625b26af346b487fc.zip
Revert "Make ClientDNSRejectInternalAddresses testing-only."
This reverts commit 27fa4a98d23972213122fa99499efa4baebe49e3.
Diffstat (limited to 'src/test/test_relaycell.c')
-rw-r--r--src/test/test_relaycell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_relaycell.c b/src/test/test_relaycell.c
index 9c010deece..eea1f5dc80 100644
--- a/src/test/test_relaycell.c
+++ b/src/test/test_relaycell.c
@@ -112,7 +112,7 @@ test_relaycell_resolved(void *arg)
MOCK(connection_mark_unattached_ap_, mark_unattached_mock);
MOCK(connection_ap_handshake_socks_resolved, socks_resolved_mock);
- options->TestingClientDNSRejectInternalAddresses = 0;
+ options->ClientDNSRejectInternalAddresses = 0;
SET_CELL(/* IPv4: 127.0.1.2, ttl 256 */
"\x04\x04\x7f\x00\x01\x02\x00\x00\x01\x00"
@@ -151,7 +151,7 @@ test_relaycell_resolved(void *arg)
/* But we may be discarding private answers. */
MOCK_RESET();
- options->TestingClientDNSRejectInternalAddresses = 1;
+ options->ClientDNSRejectInternalAddresses = 1;
r = connection_edge_process_resolved_cell(edgeconn, &cell, &rh);
tt_int_op(r, OP_EQ, 0);
ASSERT_MARK_CALLED(END_STREAM_REASON_DONE|