hosts/windows: use the port when connecting

This commit is contained in:
Mitchell Hashimoto 2014-04-12 16:22:35 -07:00
parent 5b960efcb1
commit 8698ebeff6
2 changed files with 2 additions and 5 deletions

View File

@ -26,9 +26,7 @@ module VagrantPlugins
end
rdp_info = get_rdp_info(machine)
if !rdp_info
raise Errors::RDPUndetected
end
raise Errors::RDPUndetected if !rdp_info
@env.host.capability(:rdp_client, rdp_info)
end

View File

@ -10,8 +10,7 @@ module VagrantPlugins
config = nil
opts = {
"drivestoredirect:s" => "*",
"full address:s" => rdp_info[:host],
"port:i" => rdp_info[:port],
"full address:s" => "#{rdp_info[:host]}:#{rdp_info[:port]}",
"prompt for credentials:i" => "1",
"username:s" => rdp_info[:username],
}