From f19acb066e566fe1f2fb317588b431ffa13f04e4 Mon Sep 17 00:00:00 2001 From: r-caamano Date: Mon, 20 May 2024 20:36:00 +0000 Subject: [PATCH] adding "-s" switch to diverter for service id tracking --- tunnel/intercept/tproxy/tproxy_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel/intercept/tproxy/tproxy_linux.go b/tunnel/intercept/tproxy/tproxy_linux.go index fa126ac57..dac83fbe8 100644 --- a/tunnel/intercept/tproxy/tproxy_linux.go +++ b/tunnel/intercept/tproxy/tproxy_linux.go @@ -532,7 +532,7 @@ func (self *tProxy) addInterceptAddr(interceptAddr *intercept.InterceptAddress, cmd := exec.Command(self.interceptor.diverter, "-I", "-c", cidr[0], "-m", cidr[1], "-p", interceptAddr.Proto(), "-l", fmt.Sprintf("%d", interceptAddr.LowPort()), "-h", fmt.Sprintf("%d", interceptAddr.HighPort()), - "-t", fmt.Sprintf("%d", port.GetPort())) + "-t", fmt.Sprintf("%d", port.GetPort()), "-s", *service.ID) cmdLogger := pfxlog.Logger().WithField("command", cmd.String()) cmdLogger.Debug("running external diverter") out, err := cmd.CombinedOutput()