diff --git a/models/plugin/http2https.go b/models/plugin/http2https.go index 04871c97..6f5965e6 100644 --- a/models/plugin/http2https.go +++ b/models/plugin/http2https.go @@ -105,5 +105,8 @@ func (p *HTTP2HTTPSPlugin) Name() string { } func (p *HTTP2HTTPSPlugin) Close() error { + if err := p.s.Close();err != nil { + return err + } return nil } diff --git a/models/plugin/https2http.go b/models/plugin/https2http.go index 65540356..af5b6af9 100644 --- a/models/plugin/https2http.go +++ b/models/plugin/https2http.go @@ -126,5 +126,8 @@ func (p *HTTPS2HTTPPlugin) Name() string { } func (p *HTTPS2HTTPPlugin) Close() error { + if err := p.s.Close();err != nil { + return err + } return nil }