@@ -50,8 +50,10 @@ func main() {
5050 tasks := []func (){
5151 // Ideally, we would just be doing these using Go's httptrace so that
5252 // they don't require curl, but this is good enough for now.
53- a .createStoreCommand (host + "-curl-ipv4.txt" , "curl" , "-4" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], host ),
54- a .createStoreCommand (host + "-curl-ipv6.txt" , "curl" , "-6" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], host ),
53+ a .createStoreCommand ("https-" + host + "-curl-ipv4.txt" , "curl" , "-4" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], "https://" + host ),
54+ a .createStoreCommand ("http-" + host + "-curl-ipv4.txt" , "curl" , "-4" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], "http://" + host ),
55+ a .createStoreCommand ("https-" + host + "-curl-ipv6.txt" , "curl" , "-6" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], "https://" + host ),
56+ a .createStoreCommand ("http-" + host + "-curl-ipv6.txt" , "curl" , "-6" , "--trace-time" , "--trace-ascii" , "-" , "--user-agent" , os .Args [0 ], "http://" + host ),
5557
5658 a .createStoreCommand (host + "-dig.txt" , "dig" , "-4" , "+all" , host , "A" , host , "AAAA" ),
5759 a .createStoreCommand (host + "-dig-google.txt" , "dig" , "-4" , "+all" , "@8.8.8.8" , host , "A" , host , "AAAA" ),
@@ -191,10 +193,10 @@ func (a *analyzer) mtrCommands() []func() {
191193 // mtr capabilities.
192194 var displayArgs []string
193195 var fileExt string
194- if ( bytes .Contains (output , []byte ("--json" ) )) {
196+ if bytes .Contains (output , []byte ("--json" )) {
195197 displayArgs = []string {"--json" }
196198 fileExt = "json"
197- } else if ( bytes .Contains (output , []byte ("--report-wide" ) )) {
199+ } else if bytes .Contains (output , []byte ("--report-wide" )) {
198200 displayArgs = []string {"--report-wide" }
199201 fileExt = "txt"
200202 } else {
0 commit comments