X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Freader.rs;h=fc4df12e4fd31673f51bfe315e9f436214bf71e8;hb=9a19c37ba4266971a4fd9503ac4fded63061a41b;hp=0098ef4e7d2c2c69326293a5624060787239cc65;hpb=588be32d9817a67933417836c870d30d3aaf3448;p=dnsseed-rust diff --git a/src/reader.rs b/src/reader.rs index 0098ef4..fc4df12 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -91,7 +91,6 @@ pub fn read(store: &'static Store, printer: &'static Printer, bgp_client: Arc store.set_u64(U64Setting::ConnsPerSec, try_parse_next_chunk!(u64)), "t" => store.set_u64(U64Setting::RunTimeout, try_parse_next_chunk!(u64)), "v" => store.set_u64(U64Setting::MinProtocolVersion, try_parse_next_chunk!(u64)), "w" => store.set_u64(U64Setting::WasGoodTimeout, try_parse_next_chunk!(u64)), @@ -123,7 +122,7 @@ pub fn read(store: &'static Store, printer: &'static Printer, bgp_client: Arc { let ip = try_parse_next_chunk!(IpAddr); - printer.add_line(format!("ASN for {} is {}", ip, bgp_client.get_asn(ip)), false); + printer.add_line(format!("ASN for {} is {} ({:?})", ip, bgp_client.get_asn(ip), bgp_client.get_path(ip)), false); }, "r" => { match AddressState::from_num(try_parse_next_chunk!(u8)) {