about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.go b/src/main.go
index bfb839c..0a6dfca 100644
--- a/src/main.go
+++ b/src/main.go
@@ -7,7 +7,7 @@ import (
 func main() {
 	// read command line arguments, create channels...
 	registerFlags()
-	channels = registerChannels()
+	channelsStruct := registerChannels()
 
 	// read the wordlist from a file
 	wordlist, err := readWordlist(wordlist)
@@ -18,12 +18,12 @@ func main() {
 	// write into the wordlist channel and read out of the print channel
 	// these functions wait for input into the channels and process the given
 	// data
-	go writeWordlistToChannel(channels, wordlist)
-	go printResponses(channels)
+	go writeWordlistToChannel(channelsStruct, wordlist)
+	go printResponses(channelsStruct)
 
 	// start the http server exposing the data found
 	go httpStartServer()
 
 	// make the http requests by fetching the data from the channels
-	httpHandler(wordlistChannel, printChannel, doneChannel)
+	httpHandler(channelsStruct)
 }