fix(installer/wingtech): remove duplicated struct

This commit is contained in:
oopsbagel
2025-06-13 22:00:20 -07:00
parent a234df1e1e
commit 8aadfc20f2
2 changed files with 2 additions and 13 deletions

View File

@@ -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)]

View File

@@ -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(