diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-30 19:23:03 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-30 19:23:14 +0100 |
commit | 9bfd713a9edf9a31fb71095434195c3d0ea3097e (patch) | |
tree | 4cf67749352ae144eb06480141eebe5484380b2b | |
parent | b68885346f4aa8a3216645c65e92f7c7a2c5ff51 (diff) |
Purpose: Preserve last configuration (especially across reboots) even during clean PPPoE termination
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ [package] name = "rsdsl_ip_config" -version = "0.2.4" +version = "0.3.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -2,7 +2,8 @@ use std::net::{Ipv4Addr, Ipv6Addr}; use serde::{Deserialize, Serialize}; -pub const LOCATION: &str = "/data/pppoe.ip_config"; +pub const LOCATION: &str = "/tmp/pppoe.ip_config"; +pub const LOCATION_LAST: &str = "/data/pppoe.last"; #[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)] pub struct Ipv4Config { |