mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-01 15:25:29 +00:00
proposed modifications
This commit is contained in:
parent
d878222fc1
commit
bf3e9471a6
@ -132,13 +132,10 @@ fn doctor(server_address_unclean: &str) {
|
||||
let ips: Vec<std::net::IpAddr> = lookup_host(server_address).unwrap();
|
||||
println!("Found {} IP addresses: ", ips.iter().count());
|
||||
|
||||
for ip in ips.iter() {
|
||||
println!(" - {}", ip);
|
||||
}
|
||||
ips.iter().for_each(|ip| println!(" - {ip}"));
|
||||
|
||||
ips.iter().for_each(|ip| doctor_ip(*ip, Some(server_address)));
|
||||
|
||||
for ip in ips.iter() {
|
||||
doctor_ip(*ip, Some(server_address));
|
||||
}
|
||||
} else {
|
||||
// user requested an ip address
|
||||
doctor_ip(server_ipaddr.unwrap(), None);
|
||||
|
Loading…
x
Reference in New Issue
Block a user