diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-05-26 18:42:17 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-05-26 18:42:17 +0800 |
commit | c2b1327debff9416d5e46d8b93a529e179edf85a (patch) | |
tree | 28de923d6c4e058ca5d17dc12575c70d83248845 /cli-runopts.c | |
parent | f7ba7444e8fa4aae31070cc93822962d78941276 (diff) | |
parent | 57166b400c25c2e45b23639a413edc3620cf2812 (diff) |
merge
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index a6e2b06..91a2f42 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -610,7 +610,11 @@ static void parse_hostname(const char* orighostarg) { cli_opts.username = m_strdup(cli_opts.own_user); } - port = strchr(cli_opts.remotehost, '/'); + port = strchr(cli_opts.remotehost, '%'); + if (!port) { + // legacy separator + port = strchr(cli_opts.remotehost, '/'); + } if (port) { *port = '\0'; cli_opts.remoteport = port+1; |