diff --git a/models/plugin/http2https.go b/models/plugin/http2https.go index 04871c9..6f5965e 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 6554035..af5b6af 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 }