浏览代码

auto update script executed

Toby Chui 1 年之前
父节点
当前提交
6ec8ae15c0
共有 1 个文件被更改,包括 4 次插入1 次删除
  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")
 			}()