ソースを参照

Directory authorities should accept a descriptor as changed when the relay operator changed the bandwithrate or bandwithburst settings.

svn:r19259
Sebastian Hahn 15 年 前
コミット
8390787a5f
1 ファイル変更5 行追加0 行削除
  1. 5 0
      src/or/routerlist.c

+ 5 - 0
src/or/routerlist.c

@@ -4615,6 +4615,11 @@ router_differences_are_cosmetic(routerinfo_t *r1, routerinfo_t *r2)
       (r2->bandwidthcapacity < r1->bandwidthcapacity/2))
     return 0;
 
+  /* Did the bandwithrate or bandwithburst change? */
+  if ((r1->bandwidthrate != r2->bandwidthrate) ||
+      (r1->bandwidthburst != r2->bandwidthburst))
+    return 0;
+
   /* Did more than 12 hours pass? */
   if (r1->cache_info.published_on + ROUTER_MAX_COSMETIC_TIME_DIFFERENCE
       < r2->cache_info.published_on)