3 @@ -325,7 +325,7 @@ static void addportandaddress(char* spec
4 myspec = m_strdup(spec);
6 /* search for ':', that separates address and port */
7 - svr_opts.ports[svr_opts.portcount] = strchr(myspec, ':');
8 + svr_opts.ports[svr_opts.portcount] = strrchr(myspec, ':');
10 if (svr_opts.ports[svr_opts.portcount] == NULL) {
11 /* no ':' -> the whole string specifies just a port */