Skip to content

Commit

Permalink
insecure option for TLS check
Browse files Browse the repository at this point in the history
  • Loading branch information
olpia committed Dec 21, 2017
1 parent d0b9995 commit 9225129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beeping-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var host *string
var greedeeURL *string
var greedeeUser *string
var greedeePass *string
var insecure *bool

func main() {

Expand All @@ -32,6 +33,7 @@ func main() {
greedeeURL = flag.String("greedee", "http://localhost:9223", "URL of your Greedee instance")
greedeeUser = flag.String("greedeeUser", "", "Greedee user if configured with basic auth")
greedeePass = flag.String("greedeePass", "", "Greedee password if configured with basic auth")
insecure = flag.Bool("insecure", false, "Insecure mode for TLS check (default false)")
flag.Parse()

if *checkURL == "" {
Expand All @@ -53,7 +55,7 @@ func requestBeepingCheck() (*httpcheck.Response, error) {
check := &httpcheck.Check{
URL: *checkURL,
Pattern: *pattern,
Insecure: false,
Insecure: *insecure,
Timeout: time.Duration(*timeout),
}

Expand Down

0 comments on commit 9225129

Please sign in to comment.