diff --git a/installer/src/main.rs b/installer/src/main.rs index 901e509..de785b8 100644 --- a/installer/src/main.rs +++ b/installer/src/main.rs @@ -24,7 +24,7 @@ enum Command { /// Install rayhunter on the TP-Link M7350. Tplink(InstallTpLink), /// Install rayhunter on the Wingtech CT2MHS01. - Wingtech(InstallWingtech), + Wingtech(WingtechArgs), /// Developer utilities. Util(Util), } @@ -55,17 +55,6 @@ struct InstallTpLink { #[derive(Parser, Debug)] struct InstallOrbic {} -#[derive(Parser, Debug)] -struct InstallWingtech { - /// IP address for Wingtech admin interface, if custom. - #[arg(long, default_value = "192.168.1.1")] - admin_ip: String, - - /// Web portal admin password. - #[arg(long)] - admin_password: String, -} - #[derive(Parser, Debug)] struct Util { #[command(subcommand)] diff --git a/installer/src/wingtech.rs b/installer/src/wingtech.rs index d619f7f..2f8f362 100644 --- a/installer/src/wingtech.rs +++ b/installer/src/wingtech.rs @@ -17,7 +17,7 @@ use block_padding::{Padding, Pkcs7}; use reqwest::Client; use tokio::time::sleep; -use crate::InstallWingtech as Args; +use crate::WingtechArgs as Args; use crate::util::{echo, telnet_send_command, telnet_send_file}; pub async fn install(