1
0
mirror of https://github.com/cmand/scamper.git synced 2024-05-19 06:50:05 +00:00

Fix bug if no probehops flag

This commit is contained in:
rbeverly
2017-07-17 11:15:19 -07:00
parent 0e64227dac
commit 6b3af364d3

View File

@@ -86,8 +86,9 @@ class WartsStats(WartsReader):
# elif hop['icmp-type'] == 3:
# self.dict_append(meta, i, "<" + str(hop['icmp-code']) + ">")
# add gapped hops
for q in range(i, flags['probehop']):
ips.append("*")
if 'probehop' in flags:
for q in range(i, flags['probehop']):
ips.append("*")
return (flags, ips, rtts, meta)
def do_ping(self, obj):