Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
6ec8ae15c0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      mod/dynamicproxy/dynamicproxy.go

+ 4 - 1
mod/dynamicproxy/dynamicproxy.go

@@ -171,7 +171,10 @@ func (router *Router) StartProxyService() error {
 				<-stopChan
 				ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 				defer cancel()
-				httpServer.Shutdown(ctx)
+				err := httpServer.Shutdown(ctx)
+				if err != nil {
+					log.Println(err)
+				}
 				log.Println("HTTP to HTTPS redirection listener stopped")
 			}()