lib/vagrant-notify/action/start_server.rb in vagrant-notify-0.5.2 vs lib/vagrant-notify/action/start_server.rb in vagrant-notify-0.5.3

- old
+ new

@@ -18,13 +18,13 @@ provider_name = env[:machine].provider_name dir = File.expand_path('../../', __FILE__) return if env[:machine].config.notify.enable == false - port = next_available_port(env[:machine].config.notify.bind_ip) + port = next_available_port(env[:notify_data][:bind_ip]) if which('ruby') - env[:notify_data][:pid] = Process.spawn("ruby #{dir}/server.rb #{id} #{port} #{env[:machine].config.notify.bind_ip} #{provider_name}") + env[:notify_data][:pid] = Process.spawn("ruby #{dir}/server.rb #{id} #{port} #{env[:notify_data][:bind_ip]} #{provider_name}") env[:notify_data][:port] = port sleep 5 Process.detach(env[:notify_data][:pid].to_i) else