From f9478c87f6e8553ce42c5fca91c2fc09f9f50d0f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 14 Jun 2025 19:21:10 +0700 Subject: brokenlinks: add option "insecure" The insecure option will allow and not report as error on server with invalid certificates. --- cmd/jarink/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd') diff --git a/cmd/jarink/main.go b/cmd/jarink/main.go index 9d6d1e8..88361ea 100644 --- a/cmd/jarink/main.go +++ b/cmd/jarink/main.go @@ -20,6 +20,7 @@ func main() { var ( optIgnoreStatus string + optInsecure bool optIsVerbose bool optPastResult string ) @@ -27,6 +28,9 @@ func main() { flag.StringVar(&optIgnoreStatus, `ignore-status`, ``, `Comma separated HTTP response status code to be ignored.`) + flag.BoolVar(&optInsecure, `insecure`, false, + `Do not report as error on server with invalid certificates.`) + flag.BoolVar(&optIsVerbose, `verbose`, false, `Print additional information while running.`) @@ -41,6 +45,7 @@ func main() { case `brokenlinks`: var opts = brokenlinks.Options{ IgnoreStatus: optIgnoreStatus, + Insecure: optInsecure, IsVerbose: optIsVerbose, PastResultFile: optPastResult, } -- cgit v1.3-5-g9baa