Let's use 8.8.8.8 as default instead of google.com

This commit is contained in:
Will Bradley 2014-11-13 15:52:54 -07:00
parent dac924b10e
commit b7e6a0c958

View File

@ -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 google.com") parser.add_argument("-t", "--target", help="Target to PING against. (IP / Hostname / Domain name). Defaults to 8.8.8.8")
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 = "google.com" # IP or hostname host = "8.8.8.8" # IP or hostname
print "Using default target of google.com" print "Using default target of 8.8.8.8"
if args.freq: if args.freq:
try: try: