comparison cli-runopts.c @ 895:5608a5a61c2a

Change port separator to ^ since % is used in ipv6 addresses
author Matt Johnston <matt@ucc.asn.au>
date Sat, 15 Feb 2014 21:42:35 +0800
parents c19acba28590
children a0819ecfee0b
comparison
equal deleted inserted replaced
894:7032deca6b90 895:5608a5a61c2a
615 615
616 if (cli_opts.username == NULL) { 616 if (cli_opts.username == NULL) {
617 cli_opts.username = m_strdup(cli_opts.own_user); 617 cli_opts.username = m_strdup(cli_opts.own_user);
618 } 618 }
619 619
620 port = strchr(cli_opts.remotehost, '%'); 620 port = strchr(cli_opts.remotehost, '^');
621 if (!port) { 621 if (!port) {
622 /* legacy separator */ 622 /* legacy separator */
623 port = strchr(cli_opts.remotehost, '/'); 623 port = strchr(cli_opts.remotehost, '/');
624 } 624 }
625 if (port) { 625 if (port) {