Skip to content
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

ssh: wrong type callbacks_daemon_options() #9187

Open
sg2342 opened this issue Dec 13, 2024 · 0 comments · May be fixed by #9188
Open

ssh: wrong type callbacks_daemon_options() #9187

sg2342 opened this issue Dec 13, 2024 · 0 comments · May be fixed by #9188
Assignees
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@sg2342
Copy link
Contributor

sg2342 commented Dec 13, 2024

Describe the bug

the documented callbacks_deamon_options() type in ssh.hrl is specified as

-type callbacks_daemon_options() ::
        {failfun, fun((User::string(), PeerAddress::inet:ip_address(), Reason::term()) -> _)}
      | {connectfun, fun((User::string(), PeerAddress::inet:ip_address(), Method::string()) ->_)} .

while it should say

-type callbacks_daemon_options() ::
        {failfun, fun((User::string(), Peer::{inet:ip_address(), inet:port_number()}, Reason::term()) -> _)}
      | {connectfun, fun((User::string(), Peer::{inet:ip_address(), inet:port_number()}, Method::string()) ->_)} .

Affected versions
all >= OTP 21.0

@sg2342 sg2342 added the bug Issue is reported as a bug label Dec 13, 2024
sg2342 added a commit to sg2342/otp that referenced this issue Dec 13, 2024
@sg2342 sg2342 linked a pull request Dec 13, 2024 that will close this issue
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Dec 16, 2024
@u3s u3s self-assigned this Dec 16, 2024
sg2342 added a commit to sg2342/otp that referenced this issue Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants