1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[package] 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)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27843 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2011-07-31 12:05:54 +00:00
parent aafcea0542
commit 2ee6d3729b
3 changed files with 38 additions and 7 deletions

View File

@@ -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 */