mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
Move handleSSHAgentForwarding and closeAgentForwarding from process_unix.go into tailssh.go, since they only use the platform seams (fwdListenAgent and removeAgentForwardingDir) and have no Unix-specific code of their own. Move the sshForwardGatewayPorts knob into fwdmonitor.go next to its only user, and move the evalSSHPolicy and matchRule convenience wrappers into the test file, which is the only place that calls them. This is a no-op refactor in preparation for a port of the SSH server to another platform, so that the port does not need its own copies of these functions or carry unused declarations. Updates #cleanup Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: I7c3e1f0a9d2b4e6f8a1c3e5d7f9b1d3f5a7c9e1b