hosts/windows: use the port when connecting
This commit is contained in:
parent
5b960efcb1
commit
8698ebeff6
|
@ -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
|
||||
|
|
|
@ -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],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue