Explorar o código

auto update script executed

tobychui hai 1 ano
pai
achega
9bc4eed899
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      mod/dynamicproxy/dynamicproxy.go

+ 3 - 3
mod/dynamicproxy/dynamicproxy.go

@@ -146,10 +146,10 @@ func (router *Router) StartProxyService() error {
 
 
 			//Start the http server that listens to port 80 and redirect to 443
 			//Start the http server that listens to port 80 and redirect to 443
 			go func() {
 			go func() {
-				if err := httpServer.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed {
+				if err := httpServer.ListenAndServe(); err != nil && err != http.ErrServerClosed {
 					//Unable to startup port 80 listener. Handle shutdown process gracefully
 					//Unable to startup port 80 listener. Handle shutdown process gracefully
 					stopChan <- true
 					stopChan <- true
-					log.Fatalf("Could not start server: %v\n", err)
+					log.Fatalf("Could not start redirection server: %v\n", err)
 				}
 				}
 			}()
 			}()
 			router.tlsRedirectStop = stopChan
 			router.tlsRedirectStop = stopChan
@@ -159,7 +159,7 @@ func (router *Router) StartProxyService() error {
 		log.Println("Reverse proxy service started in the background (TLS mode)")
 		log.Println("Reverse proxy service started in the background (TLS mode)")
 		go func() {
 		go func() {
 			if err := router.server.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed {
 			if err := router.server.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed {
-				log.Fatalf("Could not start server: %v\n", err)
+				log.Fatalf("Could not start proxy server: %v\n", err)
 			}
 			}
 		}()
 		}()
 	} else {
 	} else {