hosts/windows: use the port when connecting
This commit is contained in:
parent
5b960efcb1
commit
8698ebeff6
|
@ -26,9 +26,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
rdp_info = get_rdp_info(machine)
|
rdp_info = get_rdp_info(machine)
|
||||||
if !rdp_info
|
raise Errors::RDPUndetected if !rdp_info
|
||||||
raise Errors::RDPUndetected
|
|
||||||
end
|
|
||||||
|
|
||||||
@env.host.capability(:rdp_client, rdp_info)
|
@env.host.capability(:rdp_client, rdp_info)
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,8 +10,7 @@ module VagrantPlugins
|
||||||
config = nil
|
config = nil
|
||||||
opts = {
|
opts = {
|
||||||
"drivestoredirect:s" => "*",
|
"drivestoredirect:s" => "*",
|
||||||
"full address:s" => rdp_info[:host],
|
"full address:s" => "#{rdp_info[:host]}:#{rdp_info[:port]}",
|
||||||
"port:i" => rdp_info[:port],
|
|
||||||
"prompt for credentials:i" => "1",
|
"prompt for credentials:i" => "1",
|
||||||
"username:s" => rdp_info[:username],
|
"username:s" => rdp_info[:username],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue