Use a config file instead.
This commit is contained in:
31
config.toml
Normal file
31
config.toml
Normal file
@@ -0,0 +1,31 @@
|
||||
[command.ping]
|
||||
command = "ping -c 1 -t 3 {{ host }}" # -t should be -w on linux environments.
|
||||
|
||||
[command.curl]
|
||||
command = "curl --head --connect-timeout {{ host }}"
|
||||
|
||||
|
||||
[[hosts]]
|
||||
name = "Cloudflare/APNIC DNS (primary)"
|
||||
command = "ping"
|
||||
host = "1.1.1.1"
|
||||
|
||||
[[hosts]]
|
||||
name = "Cloudflare/APNIC DNS (secondary)"
|
||||
command = "ping"
|
||||
host = "1.0.0.1"
|
||||
|
||||
[[hosts]]
|
||||
name = "Google DNS (primary)"
|
||||
command = "ping"
|
||||
host = "8.8.8.8"
|
||||
|
||||
[[hosts]]
|
||||
name = "Google DNS (secondary)"
|
||||
command = "ping"
|
||||
host = "8.8.4.4"
|
||||
|
||||
[[hosts]]
|
||||
name = "Google.com"
|
||||
command = "curl"
|
||||
host = "http://www.google.com/"
|
||||
Reference in New Issue
Block a user