Consider IPv6 OR ports when deciding whether a routerinfo change is cosmetic.

Closes #6423.
This commit is contained in:
Linus Nordberg 2012-07-19 20:41:23 +02:00 committed by Nick Mathewson
parent 97602c9de4
commit 9ed87b37d0
2 changed files with 5 additions and 0 deletions

3
changes/bug6423 Normal file
View File

@ -0,0 +1,3 @@
o Minor features:
- Consider new, removed or changed IPv6 OR ports a non cosmetic
change.

View File

@ -5160,6 +5160,8 @@ router_differences_are_cosmetic(const routerinfo_t *r1, const routerinfo_t *r2)
if (strcasecmp(r1->address, r2->address) ||
strcasecmp(r1->nickname, r2->nickname) ||
r1->or_port != r2->or_port ||
!tor_addr_eq(&r1->ipv6_addr, &r2->ipv6_addr) ||
r1->ipv6_orport != r2->ipv6_orport ||
r1->dir_port != r2->dir_port ||
r1->purpose != r2->purpose ||
crypto_pk_cmp_keys(r1->onion_pkey, r2->onion_pkey) ||