Skip to content

Commit

Permalink
Merge pull request #2053 from openziti/diverter-add-service-id-switch
Browse files Browse the repository at this point in the history
adding "-s" switch to diverter for service id tracking
  • Loading branch information
plorenz authored May 22, 2024
2 parents 1d71b9e + f19acb0 commit 1587a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel/intercept/tproxy/tproxy_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1587a09

Please sign in to comment.