From 27813bcac242a1c63050241cab06ac774bbb397f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B0=E6=9F=AF?= Date: Wed, 23 Jun 2021 11:05:15 +0800 Subject: [PATCH] fix findHttpManager Former-commit-id: 29c7497a4cbd5197baa738381d7f3cc1befe7d26 --- pkg/pixiu/listener.go | 2 +- samples/plugins/go.sum | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 samples/plugins/go.sum diff --git a/pkg/pixiu/listener.go b/pkg/pixiu/listener.go index 552fdddc8..e107b4bd9 100644 --- a/pkg/pixiu/listener.go +++ b/pkg/pixiu/listener.go @@ -107,7 +107,7 @@ func (l *ListenerService) findHttpManager() model.HttpConnectionManager { for _, fc := range l.FilterChains { for _, f := range fc.Filters { if f.Name == constant.HTTPConnectManagerFilter { - return *f.Config.(*model.HttpConnectionManager) + return f.Config.(model.HttpConnectionManager) } } } diff --git a/samples/plugins/go.sum b/samples/plugins/go.sum new file mode 100644 index 000000000..1e010d95c --- /dev/null +++ b/samples/plugins/go.sum @@ -0,0 +1 @@ +github.com/dubbogo/dubbo-go-pixiu-filter v0.1.3/go.mod h1:d6SDK5BHl/QCvg84BN+g6LZS9QzVqnI2+yw0NBu0uac=