about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-02 21:12:27 +0100
committerEmile <hanemile@protonmail.com>2019-11-02 21:12:27 +0100
commitcc8223215bc5aa45ce7dee1a1e96fb091d29f6a8 (patch)
treeea4501ab37aba1990d9b8c89c00f35a223b02682
parent3efa907b12c063ed750cb8e3dd4a122be799988f (diff)
http server port flag
-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()