- switch default country to LO
- only show raw traceroute data when debug flag is set
This commit is contained in:
parent
e1699d6bff
commit
b2c2b63b1c
1 changed files with 3 additions and 3 deletions
|
|
@ -349,7 +349,7 @@ class Traceroute(object):
|
||||||
report['pub_ip'] = self.pub_ip
|
report['pub_ip'] = self.pub_ip
|
||||||
report['ifaces'] = self.ifaces
|
report['ifaces'] = self.ifaces
|
||||||
report['routes'] = self.routes
|
report['routes'] = self.routes
|
||||||
|
if self.debug:
|
||||||
report['raw'] = self.raw_string
|
report['raw'] = self.raw_string
|
||||||
|
|
||||||
return report
|
return report
|
||||||
|
|
@ -370,7 +370,7 @@ def main():
|
||||||
"-j", "--json_file", type="string", default="sources.json",
|
"-j", "--json_file", type="string", default="sources.json",
|
||||||
help="List of sources in JSON file (default: sources.json)")
|
help="List of sources in JSON file (default: sources.json)")
|
||||||
cmdparser.add_option(
|
cmdparser.add_option(
|
||||||
"-c", "--country", type="choice", default="US",
|
"-c", "--country", type="choice", default="LO",
|
||||||
choices=["LO", "BY", "CH", "JP", "RU", "UK", "US"],
|
choices=["LO", "BY", "CH", "JP", "RU", "UK", "US"],
|
||||||
help=("Traceroute will be initiated from this country; choose 'LO' "
|
help=("Traceroute will be initiated from this country; choose 'LO' "
|
||||||
"for localhost to run traceroute locally, 'BY' for Belarus, "
|
"for localhost to run traceroute locally, 'BY' for Belarus, "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue