Don't "return" if FP less than port 1024 [GH-1421]

This commit is contained in:
Mitchell Hashimoto 2013-03-15 15:15:54 -07:00
parent 529cb21154
commit f03175b4af
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ BUG FIXES:
- Human friendly error when "metadata.json" is missing in a box.
- Don't use the full path to the manifest file with the Puppet provisioner
because it exposes a bug with Puppet path lookup on VMware.
- Fix bug in VirtualBox provider where port forwarding just didn't work if
you attempted to forward to a port under 1024. [GH-1421]
## 1.1.0 (March 14, 2013)

View File

@ -21,7 +21,7 @@ module VagrantPlugins
env[:forwarded_ports].each do |fp|
if fp.host_port <= 1024
env[:ui].warn I18n.t("vagrant.actions.vm.forward_ports.privileged_ports")
return
break
end
end