]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
config: Warn if ContactInfo is not set
authorDavid Goulet <dgoulet@torproject.org>
Tue, 18 Feb 2020 14:43:13 +0000 (09:43 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 Mar 2020 16:43:00 +0000 (12:43 -0400)
Closes #33361

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket33361 [new file with mode: 0644]
src/app/config/config.c

diff --git a/changes/ticket33361 b/changes/ticket33361
new file mode 100644 (file)
index 0000000..bc9715d
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfix (relay, configuration):
+    - Now warn if the ContactInfo field is not set and mention that the relay
+      might get rejected if so. Fixes bug 33361; bugfix on 0.1.1.10-alpha.
index cbca7d38991e5e9775c576186703d7a33669fd87..1d61b76310ab4072649fed01903ccac521e9e475 100644 (file)
@@ -3433,10 +3433,15 @@ options_validate(or_options_t *old_options, or_options_t *options,
     }
   }
 
-  if (server_mode(options) && !options->ContactInfo)
-    log_notice(LD_CONFIG, "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.");
+  if (server_mode(options) && !options->ContactInfo) {
+    log_warn(LD_CONFIG,
+             "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.");
+  }
+
   const char *ContactInfo = options->ContactInfo;
   if (ContactInfo && !string_is_utf8(ContactInfo, strlen(ContactInfo)))
     REJECT("ContactInfo config option must be UTF-8.");