mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 01:06:45 +00:00
Fix lint
This commit is contained in:
@@ -375,16 +375,6 @@ func (s *Server) findSessionKeyByContext(ctx ssh.Context) SessionKey {
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
// cleanupConnectionPortForward removes port forward state from a connection
|
||||
func (s *Server) cleanupConnectionPortForward(sshConn *cryptossh.ServerConn) {
|
||||
s.mu.Lock()
|
||||
defer s.mu.Unlock()
|
||||
|
||||
if state, exists := s.sshConnections[sshConn]; exists {
|
||||
state.hasActivePortForward = false
|
||||
}
|
||||
}
|
||||
|
||||
// connectionValidator validates incoming connections based on source IP
|
||||
func (s *Server) connectionValidator(_ ssh.Context, conn net.Conn) net.Conn {
|
||||
s.mu.RLock()
|
||||
|
||||
Reference in New Issue
Block a user