# File lib/net/ssh/known-hosts.rb, line 8 def canonize(location, port) value = location value = "[#{value}]:#{port}" if port && port != 22 value end