mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-20 02:07:37 +03:00
9c8997d54d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
425 B
Diff
12 lines
425 B
Diff
--- 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 */
|