Skip to content

Commit 0d283f0

Browse files
committed
🧹 installer: format code
1 parent ed93875 commit 0d283f0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎src/installer.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,16 @@ fn connectivity_check(window: &gtk::Window, message: String) -> bool {
107107
}
108108

109109
// If HTTP check fails, try ping fallback to reliable DNS servers
110-
111-
for target in ["2001:4860:4860::8888", "2606:4700:4700::1111", "2620:fe::fe", "8.8.8.8", "1.1.1.1", "9.9.9.9"] {
112-
let ping_result = Exec::cmd("ping")
113-
.args(&["-c", "1", "-W", "3", target])
114-
.join();
115-
110+
let targets = [
111+
"2001:4860:4860::8888",
112+
"2606:4700:4700::1111",
113+
"2620:fe::fe",
114+
"8.8.8.8",
115+
"1.1.1.1",
116+
"9.9.9.9",
117+
];
118+
for target in targets {
119+
let ping_result = Exec::cmd("/sbin/ping").args(&["-c", "1", "-W", "3", target]).join();
116120
if let Ok(status) = ping_result {
117121
if status.success() {
118122
info!("Connectivity confirmed via ping to {target}");

0 commit comments

Comments
 (0)