From 243cc5dc37183628f07887a6a75d47731cec5b9e Mon Sep 17 00:00:00 2001 From: Peter Ericson Date: Tue, 3 Jun 2014 14:26:40 +1000 Subject: [PATCH] config.rb: set default port based on @ssl --- plugins/communicators/winrm/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/communicators/winrm/config.rb b/plugins/communicators/winrm/config.rb index c7f13c041..09ec5fb62 100644 --- a/plugins/communicators/winrm/config.rb +++ b/plugins/communicators/winrm/config.rb @@ -25,8 +25,8 @@ module VagrantPlugins @username = "vagrant" if @username == UNSET_VALUE @password = "vagrant" if @password == UNSET_VALUE @host = nil if @host == UNSET_VALUE - @port = 5985 if @port == UNSET_VALUE - @guest_port = 5985 if @guest_port == UNSET_VALUE + @port = (@ssl ? 5986 : 5985) if @port == UNSET_VALUE + @guest_port = (@ssl ? 5986 : 5985) if @guest_port == UNSET_VALUE @max_tries = 20 if @max_tries == UNSET_VALUE @timeout = 1800 if @timeout == UNSET_VALUE @ssl = false if @ssl == UNSET_VALUE