|
@@ -2344,9 +2344,10 @@ router_add_running_nodes_to_smartlist(smartlist_t *sl, int allow_invalid,
|
|
continue;
|
|
continue;
|
|
if (node_is_unreliable(node, need_uptime, need_capacity, need_guard))
|
|
if (node_is_unreliable(node, need_uptime, need_capacity, need_guard))
|
|
continue;
|
|
continue;
|
|
-
|
|
+
|
|
- if (node->rs && !routerstatus_version_supports_ntor(node->rs, 1))
|
|
+ if (node->rs && !routerstatus_version_supports_extend2_cells(node->rs, 1))
|
|
continue;
|
|
continue;
|
|
|
|
+
|
|
if ((node->ri || node->md) && !node_has_curve25519_onion_key(node))
|
|
if ((node->ri || node->md) && !node_has_curve25519_onion_key(node))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
@@ -5609,13 +5610,14 @@ routerinfo_has_curve25519_onion_key(const routerinfo_t *ri)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
+
|
|
* If allow_unknown_versions is true, return true if we can't tell
|
|
* If allow_unknown_versions is true, return true if we can't tell
|
|
- * (from a versions line or a protocols line) whether it supports ntor.
|
|
+ * (from a versions line or a protocols line) whether it supports extend2
|
|
|
|
+ * cells.
|
|
* Otherwise, return false if the version is unknown. */
|
|
* Otherwise, return false if the version is unknown. */
|
|
int
|
|
int
|
|
-routerstatus_version_supports_ntor(const routerstatus_t *rs,
|
|
+routerstatus_version_supports_extend2_cells(const routerstatus_t *rs,
|
|
- int allow_unknown_versions)
|
|
+ int allow_unknown_versions)
|
|
{
|
|
{
|
|
if (!rs) {
|
|
if (!rs) {
|
|
return allow_unknown_versions;
|
|
return allow_unknown_versions;
|