mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
changing ip addr type (#1950)
* changing ip addr type * fixing parse fn and improving proxy fn * Update net_controller.rs * remove extra fn call
This commit is contained in:
committed by
Aiden McClelland
parent
8b6eac3c1c
commit
373e11495d
@@ -15,7 +15,6 @@ use crate::Error;
|
||||
#[derive(Debug, Default, Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub struct DiagnosticContextConfig {
|
||||
pub ethernet_interface: String,
|
||||
pub datadir: Option<PathBuf>,
|
||||
}
|
||||
impl DiagnosticContextConfig {
|
||||
@@ -44,7 +43,6 @@ impl DiagnosticContextConfig {
|
||||
}
|
||||
|
||||
pub struct DiagnosticContextSeed {
|
||||
pub ethernet_interface: String,
|
||||
pub datadir: PathBuf,
|
||||
pub shutdown: Sender<Option<Shutdown>>,
|
||||
pub error: Arc<RpcError>,
|
||||
@@ -68,7 +66,6 @@ impl DiagnosticContext {
|
||||
let (shutdown, _) = tokio::sync::broadcast::channel(1);
|
||||
|
||||
Ok(Self(Arc::new(DiagnosticContextSeed {
|
||||
ethernet_interface: cfg.ethernet_interface.clone(),
|
||||
datadir: cfg.datadir().to_owned(),
|
||||
shutdown,
|
||||
disk_guid,
|
||||
|
||||
Reference in New Issue
Block a user