2
0

300-ipv6_addr_port_split.patch 425 B

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