diff --git a/CHANGELOG.md b/CHANGELOG.md index fe848fcf2..ce535ac31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,8 @@ using SCP to upload files. [GH-924] - When console input is asked for (destroying a VM, bridged interfaces, etc.), keystrokes such as ctrl-D and ctrl-C are more gracefully handled. [GH-1017] + - Fixed bug where port check would use "localhost" on systems where + "localhost" is not available. [GH-1057] ## 1.0.3 (May 1, 2012) diff --git a/lib/vagrant/action/vm/check_port_collisions.rb b/lib/vagrant/action/vm/check_port_collisions.rb index 254b351ad..95f6d4f2f 100644 --- a/lib/vagrant/action/vm/check_port_collisions.rb +++ b/lib/vagrant/action/vm/check_port_collisions.rb @@ -33,7 +33,7 @@ module Vagrant hostport = options[:hostport].to_i hostport = current[options[:name]] if current.has_key?(options[:name]) - if existing.include?(hostport) || is_port_open?("localhost", hostport) + if existing.include?(hostport) || is_port_open?("127.0.0.1", hostport) # We have a collision! Handle it send("handle_#{handler}".to_sym, options, existing) end