about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flags.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/flags.go b/src/flags.go
index 4a46956..bda7c30 100644
--- a/src/flags.go
+++ b/src/flags.go
@@ -21,8 +21,9 @@ var (
 	header   string
 
 	// int values
-	threads int
-	delay   int
+	threads        int
+	delay          int
+	httpServerPort int
 
 	// string values defining what request to show or hide
 	hide Hide
@@ -84,6 +85,10 @@ func registerFlags() {
 	flag.IntVar(&delay, "delay", 0, delayUsage)
 	flag.IntVar(&delay, "d", 0, delayUsage+shortcut)
 
+	httpServerPortUsage := "Port the http server exposing the findings should listen on"
+	flag.IntVar(&httpServerPort, "httpServerPort", 8080, httpServerPortUsage)
+	flag.IntVar(&httpServerPort, "hsp", 8080, httpServerPortUsage+shortcut)
+
 	// parse the flags
 
 	flag.Parse()