From 245f4fa32f8309d790093ce50a4d739ee915394b Mon Sep 17 00:00:00 2001 From: zhumouren Date: Sat, 7 Oct 2023 11:58:39 +0800 Subject: [PATCH] fix proxyType judge in JudgePort Function --- pkg/server/controller/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/controller/handler.go b/pkg/server/controller/handler.go index 4726df2..72fcefe 100644 --- a/pkg/server/controller/handler.go +++ b/pkg/server/controller/handler.go @@ -77,7 +77,7 @@ func (c *HandleController) JudgePort(content *plugin.NewProxyContent) plugin.Res "tcp", "tcpmux", "udp", "http", "https", } proxyType := content.ProxyType - if stringContains(proxyType, supportProxyTypes) { + if !stringContains(proxyType, supportProxyTypes) { log.Printf("proxy type [%v] not support, plugin do nothing", proxyType) res.Unchange = true return res