|
@@ -1305,7 +1305,7 @@ dirserv_thinks_router_is_hs_dir(const routerinfo_t *router,
|
|
|
else
|
|
|
uptime = real_uptime(router, now);
|
|
|
|
|
|
- return (router->wants_to_be_hs_dir &&
|
|
|
+ return (router->wants_to_be_hs_dir && router->dir_port &&
|
|
|
uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
|
|
|
router_is_active(router, node, now));
|
|
|
}
|