Skip to content

Commit

Permalink
ssh: re-use try_listen for ssh:daemon with integer port number
Browse files Browse the repository at this point in the history
  • Loading branch information
u3s committed Jul 12, 2024
1 parent 0418c10 commit fff0a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ssh/src/ssh_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ acceptor_init(Parent, SystemSup,

undefined ->
%% No listening socket (nor fd option) was provided; open a listening socket:
case listen(Port, Opts) of
case try_listen(Port, Opts, 4) of
{ok,LSock} ->
proc_lib:init_ack(Parent, {ok, self()}),
acceptor_loop(Port, Address, Opts, LSock, AcceptTimeout, SystemSup);
Expand Down

0 comments on commit fff0a95

Please sign in to comment.