aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-06-14 19:21:10 +0700
committerShulhan <ms@kilabit.info>2025-06-16 22:44:37 +0700
commitf9478c87f6e8553ce42c5fca91c2fc09f9f50d0f (patch)
treecd9e6945cf736853c623f00fdd6b9c48f42955e9 /cmd
parentfb9937797a07816fbc8b25fc03893f74bf7c7663 (diff)
downloadjarink-f9478c87f6e8553ce42c5fca91c2fc09f9f50d0f.tar.xz
brokenlinks: add option "insecure"
The insecure option will allow and not report as error on server with invalid certificates.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/jarink/main.go5
1 files changed, 5 insertions, 0 deletions
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,
}