stefansundin / traceroute-mapper

Map your traceroutes easily.
https://stefansundin.github.io/traceroute-mapper/
GNU Affero General Public License v3.0
286 stars 27 forks source link

weird map due to bad ip parse #2

Closed danielmotaleite closed 7 years ago

danielmotaleite commented 7 years ago

When doing a traceroute i get this:

traceroute to www.warthunder.com (52.30.149.21), 30 hops max, 60 byte packets
 1  router (10.42.42.253)  0.567 ms  0.736 ms  0.933 ms
 2  * * *
 3  107.41.30.213.rev.vodafone.pt (213.30.41.107)  11.433 ms  11.723 ms  11.591 ms
 4  ae5-100-ucr1.lis.cw.net (195.10.57.9)  11.416 ms  11.518 ms  13.591 ms
 5  ae5-xcr1.mal.cw.net (195.2.30.230)  18.975 ms  19.387 ms  19.109 ms
 6  ae1-xcr1.max.cw.net (195.2.30.85)  20.417 ms  19.697 ms  20.914 ms
 7  52.95.218.98 (52.95.218.98)  19.701 ms  17.287 ms  17.821 ms
 8  52.93.17.134 (52.93.17.134)  61.401 ms  61.396 ms 52.93.17.38 (52.93.17.38)  51.489 ms
 9  52.93.17.147 (52.93.17.147)  49.459 ms 52.93.17.83 (52.93.17.83)  48.548 ms 52.93.17.35 (52.93.17.35)  49.304 ms
10  54.239.43.253 (54.239.43.253)  50.067 ms  49.033 ms  51.079 ms
11  54.239.42.162 (54.239.42.162)  50.727 ms  49.966 ms  50.069 ms
12  176.32.106.226 (176.32.106.226)  50.522 ms  50.600 ms  51.590 ms
13  52.93.7.34 (52.93.7.34)  90.372 ms 52.93.7.30 (52.93.7.30)  83.897 ms 52.93.7.4 (52.93.7.4)  59.151 ms
14  52.93.7.123 (52.93.7.123)  49.549 ms 52.93.7.113 (52.93.7.113)  50.698 ms 52.93.7.121 (52.93.7.121)  50.180 ms
15  178.236.1.19 (178.236.1.19)  49.852 ms 178.236.0.125 (178.236.0.125)  51.325 ms  50.956 ms
16  * * *
17  * * *
18  * * *

but the map is weird, it grabs the hop3 as 107.41.30.213 (ie: reverses the IP) , but the next , hop 4 it grabs 195.10.57.9 (not reversed IP)

stefansundin commented 7 years ago

Whoops, I didn't expect IP addresses in the hostnames. It should be an easy fix.