about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/http.go b/src/http.go
index 3422992..f2518f6 100644
--- a/src/http.go
+++ b/src/http.go
@@ -28,13 +28,18 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
 
 // httpStartServer starts the http server
 func httpStartServer() {
-	log.Printf("%s Starting the http server", green("[i]"))
 
-	// setup the http server and start it
-	httpServer := setupHTTPServer()
-	log.Fatalln(httpServer.ListenAndServe())
+	if httpServerPort != 8080 {
+		log.Printf("%s Starting the http server", green("[i]"))
 
-	log.Printf("%s Done starting the http server", boldGreen("[+]"))
+		// setup the http server and start it
+		httpServer := setupHTTPServer()
+		log.Fatalln(httpServer.ListenAndServe())
+
+		log.Printf("%s Done starting the http server", boldGreen("[+]"))
+	} else {
+		return
+	}
 }
 
 // handle requests to the /api/found endpoint