diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-03-23 16:54:20 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-03-23 16:54:20 -0400 |
commit | b701db93e07fa839cf599577b45ccf3ff7b71351 (patch) | |
tree | 818d66d8d9762b490d6645dd01842744d5a0510f /src/share/common | |
parent | ebce95fb2c3f4975adf346899ce3b0ebbe9d2710 (diff) |
add FIXME note about IPv6 addresses, and break out hostnames from the last colon, not the first.
Diffstat (limited to 'src/share/common')
-rw-r--r-- | src/share/common | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/share/common b/src/share/common index 5a11817..d6e4949 100644 --- a/src/share/common +++ b/src/share/common @@ -467,7 +467,11 @@ ssh2known_hosts() { local port local key - host=${1%%:*} + # FIXME this does not properly deal with IPv6 hosts using the + # standard port (because it's unclear whether their final + # colon-delimited address section is a port number or an address + # string) + host=${1%:*} port=${1##*:} key="$2" |