Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ func (p probeArgs) String() string {

func main() {

// concurrency flag

var concurrency int
flag.IntVar(&concurrency, "c", 20, "set the concurrency level (split equally between HTTPS and HTTP requests)")

// probe flags

var probes probeArgs
flag.Var(&probes, "p", "add additional probe (proto:port)")

// skip default probes flag

var skipDefault bool
flag.BoolVar(&skipDefault, "s", false, "skip the default probes (http:80 and https:443)")

// timeout flag
var to int
flag.IntVar(&to, "t", 10000, "timeout (milliseconds)")

// prefer https

var preferHTTPS bool
flag.BoolVar(&preferHTTPS, "prefer-https", false, "only try plain HTTP if HTTPS fails")

Expand Down