- 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,8 +349,8 @@ class Traceroute(object):
|
|||
report['pub_ip'] = self.pub_ip
|
||||
report['ifaces'] = self.ifaces
|
||||
report['routes'] = self.routes
|
||||
|
||||
report['raw'] = self.raw_string
|
||||
if self.debug:
|
||||
report['raw'] = self.raw_string
|
||||
|
||||
return report
|
||||
|
||||
|
|
@ -370,7 +370,7 @@ def main():
|
|||
"-j", "--json_file", type="string", default="sources.json",
|
||||
help="List of sources in JSON file (default: sources.json)")
|
||||
cmdparser.add_option(
|
||||
"-c", "--country", type="choice", default="US",
|
||||
"-c", "--country", type="choice", default="LO",
|
||||
choices=["LO", "BY", "CH", "JP", "RU", "UK", "US"],
|
||||
help=("Traceroute will be initiated from this country; choose 'LO' "
|
||||
"for localhost to run traceroute locally, 'BY' for Belarus, "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue