feat(config): migrate configuration loading to config-rs #68

Merged
Lochnair merged 9 commits from feature/config into master 2026-08-07 09:10:14 +00:00
Showing only changes of commit 605ec6ef81 - Show all commits
+2 -18
View File
@@ -155,24 +155,8 @@ fn install_signal_handlers() {
}
}
fn interface_stats_directions(settings: &Settings) -> (StatsDirection, StatsDirection) {
let download = if settings.network.download_interface.starts_with("ifb")
|| settings.network.download_interface.starts_with("veth")
{
StatsDirection::TX
} else {
StatsDirection::RX
};
let upload = if settings.network.upload_interface.starts_with("ifb")
|| settings.network.upload_interface.starts_with("veth")
{
StatsDirection::RX
} else {
StatsDirection::TX
};
(download, upload)
fn interface_stats_directions(_: &Settings) -> (StatsDirection, StatsDirection) {
(StatsDirection::RX, StatsDirection::TX)
}
fn probe_identifier() -> u16 {