aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-09-07 23:28:59 +0200
committerHimbeer <himbeer@disroot.org>2024-09-07 23:28:59 +0200
commit150fbe115e4944fe880b3dc1ad740eea79aa226f (patch)
treee7f9d5c2f01435d050bf1de08f8fd490685e27d8
parent699f790271b0307a05d8a5e15362f449a1537b0c (diff)
Switch to carrier0 as the uplink interface
Previously eth1 was used directly. The new carrier0 uplink is provided by netlinkd and is a VLAN (currently using tag 7) required by many ISPs. Some modems are capable of attaching these tags automatically, but my feature GPON ONT is not.
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3a0517e..a15b4f3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,7 @@ use rsdsl_pppoe3::{Client, Error, Result};
use serde::{Deserialize, Serialize};
use sysinfo::{ProcessExt, Signal, System, SystemExt};
-const INTERFACE: &str = "eth1";
+const INTERFACE: &str = "carrier0";
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
struct Config {