mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-06-07 08:11:39 +00:00
Fix handling of seqno requests for local routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ impl SourceTable {
|
||||
let source_key = SourceKey::new(update.subnet(), update.router_id());
|
||||
match self.get(&source_key) {
|
||||
Some(entry) => {
|
||||
(!update.seqno().lt(&entry.seqno()))
|
||||
(update.seqno().gt(&entry.seqno()))
|
||||
|| (update.seqno() == entry.seqno() && update.metric() < entry.metric())
|
||||
|| update.metric().is_infinite()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user