summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/share/common6
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"