From 354c455dc6d463d5eed43804d1eb3aaa95c9e471 Mon Sep 17 00:00:00 2001
From: elijah <elijah@riseup.net>
Date: Wed, 27 Mar 2013 01:11:38 -0700
Subject: make sure stunnel hostnames show up in /etc/hosts

---
 lib/leap_cli/config/macros.rb | 1 +
 1 file changed, 1 insertion(+)

(limited to 'lib/leap_cli')

diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb
index 844f6c5..3c59356 100644
--- a/lib/leap_cli/config/macros.rb
+++ b/lib/leap_cli/config/macros.rb
@@ -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[
-- 
cgit v1.2.3