Skip to content

Allow custom listeners for reverse TCP forwards - #27

Merged
blaubaer merged 2 commits into
mainfrom
feature/reverse-tcp-listen-callback
Sep 27, 2026
Merged

blaubaer merged 2 commits into
mainfrom
feature/reverse-tcp-listen-callback

Conversation

@blaubaer

@blaubaer blaubaer commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add an optional listener callback to ForwardedTCPHandler, called after authorization and forward-limit reservation with the original bind host and port.
  • Keep the default net.ListenConfig.Listen path; use the bound listener port for SSH replies and cancellation, and close callback listeners on failure, cancel, and disconnect.
  • Cover default behavior, hook arguments, port 0, bound-port and origin metadata, limits, errors, cancel, and disconnect.

@blaubaer blaubaer self-assigned this Sep 27, 2026
@blaubaer blaubaer added enhancement New feature or request go Pull requests that update go code labels Sep 27, 2026
@blaubaer
blaubaer merged commit f8e3785 into main Sep 27, 2026
21 checks passed
@blaubaer
blaubaer deleted the feature/reverse-tcp-listen-callback branch September 27, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant