]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'ticket33361_035_01_squashed' into maint-0.4.3
authorNick Mathewson <nickm@torproject.org>
Thu, 12 Mar 2020 17:42:42 +0000 (13:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 Mar 2020 17:42:42 +0000 (13:42 -0400)
1  2 
src/test/test_options.c

index 636d3c0e54413c69ae5822cafdc88e43ace45360,0e52967a23a30b96e12ad3e2ab65fcfecb7d7112..9cd1d11d29aad97a3c03b95a1c7e4b4f0e605832
@@@ -633,24 -631,28 +634,28 @@@ test_options_validate__contactinfo(voi
    setup_capture_of_logs(LOG_DEBUG);
    tdata->opt->ContactInfo = NULL;
  
 -  ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
 -  tt_int_op(ret, OP_EQ, -1);
 +  ret = options_validate(NULL, tdata->opt, &msg);
 +  tt_int_op(ret, OP_EQ, 0);
    expect_log_msg(
-             "Your ContactInfo config option is not"
-             " set. Please consider setting it, so we can contact you if your"
-             " server is misconfigured or something else goes wrong.\n");
+            "Your ContactInfo config option is not set. Please strongly "
+            "consider setting it, so we can contact you if your relay is "
+            "misconfigured, end-of-life, or something else goes wrong. It "
+            "is also possible that your relay might get rejected from the "
+            "network due to a missing valid contact address.\n");
    tor_free(msg);
  
    free_options_test_data(tdata);
    tdata = get_options_test_data("ORPort 127.0.0.1:5555\n"
                                  "ContactInfo hella@example.org");
    mock_clean_saved_logs();
 -  ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
 -  tt_int_op(ret, OP_EQ, -1);
 +  ret = options_validate(NULL, tdata->opt, &msg);
 +  tt_int_op(ret, OP_EQ, 0);
    expect_no_log_msg(
-             "Your ContactInfo config option is not"
-             " set. Please consider setting it, so we can contact you if your"
-             " server is misconfigured or something else goes wrong.\n");
+            "Your ContactInfo config option is not set. Please strongly "
+            "consider setting it, so we can contact you if your relay is "
+            "misconfigured, end-of-life, or something else goes wrong. It "
+            "is also possible that your relay might get rejected from the "
+            "network due to a missing valid contact address.\n");
    tor_free(msg);
  
   done: