You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RefreshPorts code path doesn't really make sense #509
returnfmt.Errorf("failed to send port refresh message: %w", err)
}
if!res {
returnfmt.Errorf("failed to refresh ports: %w", err)
}
returnerr
}
I have no opinion on what the message should say. Happy to open a PR with your recommendation.
Separately, as a minor nit reading this code, it seems like it would be better for the final return on this method to be return nil, since again, no other value is possible.
In looking at the SSH spec, a false boolean return seems to be an occurrence of the server sending SSH_MSG_REQUEST_FAILURE, which happens when "If the recipient does not recognize or support the request"
Activity
williammartin commentedon Jan 21, 2025
In looking at the SSH spec, a
falseboolean return seems to be an occurrence of the server sendingSSH_MSG_REQUEST_FAILURE, which happens when "If the recipient does not recognize or support the request"https://datatracker.ietf.org/doc/html/rfc4254#section-9
So I suspect this should really say something like: