Merge pull request #7587 from alexmv/disabled-conflicts

Skip checking for conflicts on ports that are disabled
This commit is contained in:
Seth Vargo 2016-07-18 21:55:33 -04:00 committed by GitHub
commit 8f10dbca90
1 changed files with 5 additions and 0 deletions

View File

@ -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