|
@@ -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")
|
|
|
}()
|
|
|
|