Explorar o código

whine at you if you're a server and you don't set your contactinfo

svn:r4178
Roger Dingledine %!s(int64=20) %!d(string=hai) anos
pai
achega
1f263bf6f5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/or/config.c

+ 3 - 0
src/or/config.c

@@ -1282,6 +1282,9 @@ options_validate(or_options_t *options)
     }
   }
 
+  if (server_mode(options) && !options->ContactInfo)
+    log_fn(LOG_NOTICE,"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 (normalize_log_options(options))
     return -1;