Changing 4.2.2.2 default target to google.com target
This commit is contained in:
parent
96aca5bfd5
commit
dac924b10e
|
@ -60,7 +60,7 @@ startup_path = home_path+'/.config/autostart/pinger.desktop'
|
||||||
startup_dir = home_path+'/.config/autostart/'
|
startup_dir = home_path+'/.config/autostart/'
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("-t", "--target", help="Target to PING against. (IP / Hostname / Domain name). Defaults to 4.2.2.2")
|
parser.add_argument("-t", "--target", help="Target to PING against. (IP / Hostname / Domain name). Defaults to google.com")
|
||||||
parser.add_argument("-f", "--freq", help="Timeout between pings, in seconds. Defaults to 5")
|
parser.add_argument("-f", "--freq", help="Timeout between pings, in seconds. Defaults to 5")
|
||||||
parser.add_argument("-m", "--maxlog", help="Maximum amount of pings to log. Defaults to 40")
|
parser.add_argument("-m", "--maxlog", help="Maximum amount of pings to log. Defaults to 40")
|
||||||
parser.add_argument("-c", "--color", help="Color scheme ('dark' or 'light'). Defaults to dark.")
|
parser.add_argument("-c", "--color", help="Color scheme ('dark' or 'light'). Defaults to dark.")
|
||||||
|
@ -83,8 +83,8 @@ for arg in sys.argv[1:]:
|
||||||
if args.target:
|
if args.target:
|
||||||
host = args.target
|
host = args.target
|
||||||
else:
|
else:
|
||||||
host = "4.2.2.2" # IP or hostname
|
host = "google.com" # IP or hostname
|
||||||
print "Using default target IP of 4.2.2.2"
|
print "Using default target of google.com"
|
||||||
|
|
||||||
if args.freq:
|
if args.freq:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user