config.rb: set default port based on @ssl

This commit is contained in:
Peter Ericson 2014-06-03 14:26:40 +10:00 committed by Max Lincoln
parent 52d8fddf38
commit 243cc5dc37
1 changed files with 2 additions and 2 deletions

View File

@ -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