]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
make sure stunnel hostnames show up in /etc/hosts
authorelijah <elijah@riseup.net>
Wed, 27 Mar 2013 08:11:38 +0000 (01:11 -0700)
committerelijah <elijah@riseup.net>
Wed, 27 Mar 2013 08:11:38 +0000 (01:11 -0700)
lib/leap_cli/config/macros.rb

index 844f6c50e351be7cc7a34e38d426ff6b519269b4..3c5935660a96bc13d59f6679526bfb1a40190e98 100644 (file)
@@ -197,6 +197,7 @@ module LeapCli; module Config
     #
     def stunnel_client(node_list, port, options={})
       @next_stunnel_port ||= 4000
+      hostnames(node_list) # record the hosts
       node_list.values.inject(Config::ObjectList.new) do |hsh, node|
         if node.name != self.name || options[:include_self]
           hsh["#{node.name}#{port}"] = Config::Object[