kernel/v2: Reimplement 8655d21 to always forward SSH

Fixes #7202
Always forwards SSH even if WinRM is set
This commit is contained in:
Kierran McPherson 2016-05-04 12:04:25 +12:00 committed by Kierran McPherson
parent f19e33524d
commit 3bff55034a
1 changed files with 3 additions and 1 deletions

View File

@ -425,7 +425,9 @@ module VagrantPlugins
id: "winrm-ssl",
auto_correct: true
end
elsif !@__networks["forwarded_port-ssh"]
end
# forward SSH ports regardless of communicator
if !@__networks["forwarded_port-ssh"]
network :forwarded_port,
guest: 22,
host: 2222,