|
@@ -3569,6 +3569,17 @@ dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method)
|
|
|
if (summary && strcmp(summary, "reject 1-65535"))
|
|
|
smartlist_add_asprintf(chunks, "p %s\n", summary);
|
|
|
|
|
|
+ if (consensus_method >= MIN_METHOD_FOR_P6_LINES &&
|
|
|
+ ri->ipv6_exit_policy) {
|
|
|
+ /* XXXX024 This doesn't match proposal 208, which says these should
|
|
|
+ * be taken unchanged from the routerinfo. That's bogosity, IMO:
|
|
|
+ * the proposal should have said to do this instead.*/
|
|
|
+ char *p6 = write_short_policy(ri->ipv6_exit_policy);
|
|
|
+ if (p6 && strcmp(p6, "reject 1-65535"))
|
|
|
+ smartlist_add_asprintf(chunks, "p6 %s\n", p6);
|
|
|
+ tor_free(p6);
|
|
|
+ }
|
|
|
+
|
|
|
output = smartlist_join_strings(chunks, "", 0, NULL);
|
|
|
|
|
|
{
|