From 5e3c0f1b8f81f9bb010562587c40e5c51d8887d1 Mon Sep 17 00:00:00 2001 From: Robin Verton Date: Sun, 29 Nov 2020 19:28:22 +0100 Subject: [PATCH] Turn off redirect by default --- cmd/webanalyze/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/webanalyze/main.go b/cmd/webanalyze/main.go index e53940c..96bc7fe 100644 --- a/cmd/webanalyze/main.go +++ b/cmd/webanalyze/main.go @@ -25,7 +25,7 @@ var ( hosts string crawlCount int searchSubdomain bool - silent bool + silent bool redirect bool ) @@ -39,7 +39,7 @@ func init() { flag.IntVar(&crawlCount, "crawl", 0, "links to follow from the root page (default 0)") flag.BoolVar(&searchSubdomain, "search", true, "searches all urls with same base domain (i.e. example.com and sub.example.com)") flag.BoolVar(&silent, "silent", false, "avoid printing header (default false)") - flag.BoolVar(&redirect, "redirect", true, "follow http redirects (default true)") + flag.BoolVar(&redirect, "redirect", false, "follow http redirects (default false)") } func main() {