diff --git a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb index 05e8edfa3..468d82a98 100644 --- a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +++ b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb @@ -93,6 +93,11 @@ module Vagrant guest_port = options[:guest] host_port = options[:host] + if options[:disabled] + @logger.debug("Skipping disabled port #{host_port}.") + next + end + if options[:protocol] && options[:protocol] != "tcp" @logger.debug("Skipping #{host_port} because UDP protocol.") next