mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
Split listening port argument at the rightmost colon, allows binding to
specific IPv6 addresses. From OpenWRT, https://dev.openwrt.org/browser/trunk/package/dropbear/patches/300-ipv6_addr_port_split.patch
This commit is contained in:
parent
3e2b6a1821
commit
6467b8d903
@ -325,7 +325,7 @@ static void addportandaddress(char* spec) {
|
||||
myspec = m_strdup(spec);
|
||||
|
||||
/* search for ':', that separates address and port */
|
||||
svr_opts.ports[svr_opts.portcount] = strchr(myspec, ':');
|
||||
svr_opts.ports[svr_opts.portcount] = strrchr(myspec, ':');
|
||||
|
||||
if (svr_opts.ports[svr_opts.portcount] == NULL) {
|
||||
/* no ':' -> the whole string specifies just a port */
|
||||
|
Loading…
Reference in New Issue
Block a user