From df8196a68c64ee8d29a430689f9d5a57fb7562c6 Mon Sep 17 00:00:00 2001 From: adlyq Date: Thu, 12 May 2022 18:57:30 +0800 Subject: [PATCH] fix: print process path logic --- adapter/outboundgroup/groupbase.go | 2 +- tunnel/tunnel.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/outboundgroup/groupbase.go b/adapter/outboundgroup/groupbase.go index 79d23c2a..032f989b 100644 --- a/adapter/outboundgroup/groupbase.go +++ b/adapter/outboundgroup/groupbase.go @@ -58,7 +58,7 @@ func (gb *GroupBase) GetProxies(touch bool) []C.Proxy { } return proxies } - //TODO("Touch Version 没变的") + for _, pd := range gb.providers { if pd.VehicleType() == types.Compatible { if touch { diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index e0515e11..72102bf1 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -179,7 +179,7 @@ func preHandleMetadata(metadata *C.Metadata) error { } else { metadata.Process = filepath.Base(path) metadata.ProcessPath = path - if procesCache == metadata.Process { + if procesCache != metadata.Process { log.Debugln("[Process] %s from process %s", metadata.String(), path) } procesCache = metadata.Process