dropbear: - split port argument at the rightmost colon, allows binding to specific IPv6 addresses - don't use uci ipaddr var but resolve ifname and get addresses from it (#9853)
SVN-Revision: 27843master
parent
19eaf1c5f7
commit
8fc2981bcd
@ -0,0 +1,11 @@ |
||||
--- a/svr-runopts.c
|
||||
+++ b/svr-runopts.c
|
||||
@@ -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