Forráskód Böngészése

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

svn:r4178
Roger Dingledine 20 éve
szülő
commit
1f263bf6f5
1 módosított fájl, 3 hozzáadás és 0 törlés
  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;