Commit c24d2c1a authored by Niels Möller's avatar Niels Möller

* src/lshd.c (main_argp_parser): Bugfix: Use the supplied

interface! Copied from main branch.

Rev: src/lshd.c:1.112.2.1
parent 64303661
......@@ -431,9 +431,9 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
argp_error(state, "All keyexchange algorithms disabled.");
if (self->port)
self->local = make_address_info_c(arg, self->port, 0);
self->local = make_address_info_c(self->interface, self->port, 0);
else
self->local = make_address_info_c(arg, "ssh", 22);
self->local = make_address_info_c(self->interface, "ssh", 22);
if (!self->local)
argp_error(state, "Invalid interface, port or service, %s:%s'.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment