Support network in dumps

This commit is contained in:
Louis Dureuil
2025-01-29 17:31:37 +01:00
parent 4918b9ffb6
commit e34afca6d7
6 changed files with 46 additions and 2 deletions

View File

@@ -114,6 +114,13 @@ impl DumpReader {
DumpReader::Compat(compat) => compat.features(),
}
}
pub fn network(&self) -> Result<Option<&v6::Network>> {
match self {
DumpReader::Current(current) => Ok(current.network()),
DumpReader::Compat(compat) => compat.network(),
}
}
}
impl From<V6Reader> for DumpReader {