From dcbe25c3aea94a637a3a31fe69df67016300b598 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Mon, 5 Dec 2022 19:48:54 +0800 Subject: [PATCH] chore: add log --- tunnel/tunnel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index 64ed0325..8f0ef8f6 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -509,8 +509,10 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) { func getRules(metadata *C.Metadata) []C.Rule { if sr, ok := subRules[metadata.SpecialRules]; ok { + log.Debugln("[Rule] use %s rules", metadata.SpecialRules) return sr } else { + log.Debugln("[Rule] use default rules") return rules } }