mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-01 23:35:38 +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();
|
let ips: Vec<std::net::IpAddr> = lookup_host(server_address).unwrap();
|
||||||
println!("Found {} IP addresses: ", ips.iter().count());
|
println!("Found {} IP addresses: ", ips.iter().count());
|
||||||
|
|
||||||
for ip in ips.iter() {
|
ips.iter().for_each(|ip| println!(" - {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 {
|
} else {
|
||||||
// user requested an ip address
|
// user requested an ip address
|
||||||
doctor_ip(server_ipaddr.unwrap(), None);
|
doctor_ip(server_ipaddr.unwrap(), None);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user