]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
don't bind hosts in known_hosts to particular ports, since it causes all kinds of...
authorelijah <elijah@riseup.net>
Fri, 5 Jul 2013 07:05:09 +0000 (00:05 -0700)
committerelijah <elijah@riseup.net>
Fri, 5 Jul 2013 07:05:09 +0000 (00:05 -0700)
lib/leap_cli/commands/node.rb

index 7bcfb233c52010577547de4afb4b43980fe35f9a..b700a907d6bb221b9e8a7037ede629a7a3c8b264 100644 (file)
@@ -129,13 +129,7 @@ module LeapCli; module Commands
     buffer << "#\n"
     manager.nodes.keys.sort.each do |node_name|
       node = manager.nodes[node_name]
-      hostnames = [node.name, node.domain.internal, node.domain.full, node.ip_address].map {|hn|
-        if node.ssh.port == 22
-          hn
-        else
-          "[#{hn}]:#{node.ssh.port}"
-        end
-      }.join(',')
+      hostnames = [node.name, node.domain.internal, node.domain.full, node.ip_address].join(',')
       pub_key = read_file([:node_ssh_pub_key,node.name])
       if pub_key
         buffer << [hostnames, pub_key].join(' ')