diff options
author | teor <teor2345@gmail.com> | 2016-09-13 17:20:46 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-13 10:13:57 -0400 |
commit | 365ca3ca0f5d9d391a2156436d1a7c620906e23a (patch) | |
tree | c1eb1da017298f74ce242a5fd63833bc91128d03 /src/test/test_options.c | |
parent | f686fa2ee600f6670bab7531d404eaf5f8ea91ff (diff) | |
download | tor-365ca3ca0f5d9d391a2156436d1a7c620906e23a.tar.gz tor-365ca3ca0f5d9d391a2156436d1a7c620906e23a.zip |
Refactor Single Onion code to improve consistency
* Check consistency between the two single onion torrc options
* Use the more relevant option each time we check for single onion mode
* Clarify log messages
* Clarify comments
* Otherwise, no behaviour change
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index cd1821a77e..f01e137f8f 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -2813,10 +2813,10 @@ test_options_validate__single_onion(void *ignored) ); ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg); tt_int_op(ret, OP_EQ, -1); - tt_str_op(msg, OP_EQ, "OnionServiceSingleHopMode is incompatible with using " - "Tor as an anonymous client. Please set Socks/Trans/NATD/DNSPort " - "to 0, or OnionServiceSingleHopMode to 0, or use the " - "non-anonymous Tor2webMode."); + tt_str_op(msg, OP_EQ, "OnionServiceNonAnonymousMode is incompatible with " + "using Tor as an anonymous client. Please set " + "Socks/Trans/NATD/DNSPort to 0, or OnionServiceNonAnonymousMode " + "to 0, or use the non-anonymous Tor2webMode."); tor_free(msg); free_options_test_data(tdata); |