From 5bfad04b4121523d8d1ad1927591a10393f152f4 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 24 Feb 2023 14:58:01 +0800 Subject: [PATCH] fix: checkTunName mistake --- listener/sing_tun/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listener/sing_tun/server.go b/listener/sing_tun/server.go index 63d475cf..3abef12d 100644 --- a/listener/sing_tun/server.go +++ b/listener/sing_tun/server.go @@ -77,7 +77,7 @@ func checkTunName(tunName string) (ok bool) { if len(tunName) <= 4 { return false } - if tunName[:4] == "utun" { + if tunName[:4] != "utun" { return false } if _, parseErr := strconv.ParseInt(tunName[4:], 10, 16); parseErr != nil {