lib/vagrant/action/vm/forward_ports.rb in vagrantup-0.8.6 vs lib/vagrant/action/vm/forward_ports.rb in vagrantup-0.8.7

- old
+ new

@@ -21,10 +21,13 @@ # This method checks for any forwarded ports on the host below # 1024, which causes the forwarded ports to fail. def threshold_check @env.env.config.vm.forwarded_ports.each do |name, options| - raise Errors::ForwardPortBelowThreshold if options[:hostport] <= 1024 + if options[:hostport] <= 1024 + @env.ui.warn I18n.t("vagrant.actions.vm.forward_ports.privileged_ports") + return + end end end # This method checks for any port collisions with any VMs # which are already created (by Vagrant or otherwise).