|
@@ -1551,10 +1551,12 @@ run_scheduled_events(time_t now)
|
|
|
channel_run_cleanup();
|
|
|
channel_listener_run_cleanup();
|
|
|
|
|
|
- /** 9. and if we're a server, check whether our DNS is telling stories to
|
|
|
- * us. */
|
|
|
+ /** 9. and if we're an exit node, check whether our DNS is telling stories
|
|
|
+ * to us. */
|
|
|
if (!net_is_disabled() &&
|
|
|
- public_server_mode(options) && time_to_check_for_correct_dns < now) {
|
|
|
+ public_server_mode(options) &&
|
|
|
+ time_to_check_for_correct_dns < now &&
|
|
|
+ ! router_my_exit_policy_is_reject_star()) {
|
|
|
if (!time_to_check_for_correct_dns) {
|
|
|
time_to_check_for_correct_dns = now + 60 + crypto_rand_int(120);
|
|
|
} else {
|