Skip to content

fix: track JetBrains connections #10968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Dec 7, 2023
Prev Previous commit
Next Next commit
Comment ChannelAccepterWatcher
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
  • Loading branch information
code-asher and Emyrk committed Dec 1, 2023
commit 7139448235a78112a2e6421aa43c97e1802de986
3 changes: 3 additions & 0 deletions agent/agentssh/jetbrainstrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type localForwardChannelData struct {
OriginPort uint32
}

// ChannelAcceptWatcher is used to track jetbrains port forwarding (gateway)
// connections. If the port forward is something other than jetbrains, this
// struct is a noop.
type ChannelAcceptWatcher struct {
gossh.NewChannel
jetbrainsCounter *atomic.Int64
Expand Down