diff options
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index 1dc6aebc0b..d91564d93b 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -587,7 +587,12 @@ decide_if_publishable_server(time_t now) void consider_publishable_server(time_t now, int force) { - int rebuilt = router_rebuild_descriptor(0); + int rebuilt; + + if (!server_mode(get_options())) + return; + + rebuilt = router_rebuild_descriptor(0); if (decide_if_publishable_server(now)) { set_server_advertised(1); if (rebuilt == 0) |