comparison cli-runopts.c @ 784:0e5ea6812bb7

Use % rather than # for port delimiter
author Matt Johnston <matt@ucc.asn.au>
date Wed, 17 Apr 2013 23:17:27 +0800
parents 34e69908b3f7
children c936abfa9935
comparison
equal deleted inserted replaced
783:34e69908b3f7 784:0e5ea6812bb7
608 608
609 if (cli_opts.username == NULL) { 609 if (cli_opts.username == NULL) {
610 cli_opts.username = m_strdup(cli_opts.own_user); 610 cli_opts.username = m_strdup(cli_opts.own_user);
611 } 611 }
612 612
613 port = strchr(cli_opts.remotehost, '#'); 613 port = strchr(cli_opts.remotehost, '%');
614 if (!port) { 614 if (!port) {
615 // legacy separator 615 // legacy separator
616 port = strchr(cli_opts.remotehost, '/'); 616 port = strchr(cli_opts.remotehost, '/');
617 } 617 }
618 if (port) { 618 if (port) {