aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-03-27 01:11:38 -0700
committerelijah <elijah@riseup.net>2013-03-27 01:11:38 -0700
commit354c455dc6d463d5eed43804d1eb3aaa95c9e471 (patch)
treedf1c7b73bbb06d9df8198ba9a57dd8c96c2bbead
parentc8357d735650ef84a134de6c7b32c03db5e9cce4 (diff)
downloadleap_cli-354c455dc6d463d5eed43804d1eb3aaa95c9e471.tar.gz
leap_cli-354c455dc6d463d5eed43804d1eb3aaa95c9e471.tar.bz2
make sure stunnel hostnames show up in /etc/hosts
-rw-r--r--lib/leap_cli/config/macros.rb1
1 files changed, 1 insertions, 0 deletions
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[