We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf6f5d commit 68d2178Copy full SHA for 68d2178
installer/src/tplink.rs
@@ -85,7 +85,16 @@ pub async fn start_telnet(admin_ip: &str) -> Result<bool, Error> {
85
anyhow::bail!("Bad result code when trying to reset the language: {result}");
86
}
87
88
- println!("Detected hardware revision v3");
+ // Final check. On v6, all of the above steps succeed, but telnet may still not be launched.
89
+ sleep(Duration::from_millis(1000)).await;
90
+ if telnet_send_command(addr, "true", "exit code 0", true)
91
+ .await
92
+ .is_err()
93
+ {
94
+ continue;
95
+ }
96
+
97
+ println!("Detected hardware revision v3, successfully opened telnet");
98
return Ok(true);
99
100
0 commit comments