Skip to content

Commit 7c7731d

Browse files
author
opensourcegeek
committed
added ip/isp in display
1 parent 5cce801 commit 7c7731d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ fn run_test(number_of_tests: u64, file_name: Option<&str>,
396396
None => {
397397
// both server country and server country code are not set.
398398
// look for closest servers - we should add a switch to avoid this distance check
399-
let client_conf = config.client;
399+
let client_conf = &config.client;
400400
let client_location = (client_conf.lat, client_conf.lon);
401401
let mut closest_servers: Vec<TestServerConfig> = Vec::new();
402402
pick_closest_servers(client_location, &test_servers, &mut closest_servers);
@@ -408,6 +408,7 @@ fn run_test(number_of_tests: u64, file_name: Option<&str>,
408408
};
409409

410410

411+
println!("Your address {:?} and ISP {:?}", config.client.ip, config.client.isp);
411412
if closest_servers.len() > 0 {
412413
// TODO: May be change the server for each test?
413414
// look for ping latency for all servers (or closest servers)

stest-i686.gif

-29.4 KB
Loading

0 commit comments

Comments
 (0)