diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-02-15 21:42:35 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-02-15 21:42:35 +0800 |
commit | 0c9a643216e330911917fb1837747456d49a80b2 (patch) | |
tree | 65c8ea6f620c92e9b7fafb92b0e348c0ee95af7c /cli-runopts.c | |
parent | fa2d843403874cf30f4892f26b15e33178d80daa (diff) |
Change port separator to ^ since % is used in ipv6 addresses
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index 9877740..d8b250a 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -617,7 +617,7 @@ 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, '/'); |