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