From f56acdf89d31b49667c7f02c6b777ac59006146a Mon Sep 17 00:00:00 2001 From: oopsbagel Date: Thu, 12 Jun 2025 12:46:08 -0700 Subject: [PATCH] fix(installer/wingtech): better Response variable --- installer/src/wingtech.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/src/wingtech.rs b/installer/src/wingtech.rs index 94a7645..106cc38 100644 --- a/installer/src/wingtech.rs +++ b/installer/src/wingtech.rs @@ -71,14 +71,14 @@ async fn run_command(admin_ip: &str, admin_password: &str, cmd: &str) -> Result< None => bail!("login did not return a token in response: {}", login), }; - let telnet = client.post(&qcmap_web_cgi_endpoint) + let command = client.post(&qcmap_web_cgi_endpoint) .body(format!("page=setFWMacFilter&cmd=add&mode=0&mac=50:5A:CA:B5:05||{cmd}&key=50:5A:CA:B5:05:AC&token={token}")) .send() .await?; - if telnet.status() != 200 { + if command.status() != 200 { bail!( - "starting telnet failed with status code: {:?}", - telnet.status() + "running command failed with status code: {:?}", + command.status() ); }