bin/bum in bum-0.0.12 vs bin/bum in bum-0.0.13
- old
+ new
@@ -2,15 +2,19 @@
$: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'net/dns/mdns-sd'
+require 'net/dns/resolv-mdns'
+require 'net/dns/resolv-replace'
master_address = nil
puts 'Looking for the master node...'
service = Net::DNS::MDNSSD.browse('_demo._tcp') { |r|
- puts "Found #{r.name}!"
- master_address = r.name
+ Net::DNS::MDNSSD.resolve(r.name, r.type) do |rr|
+ puts "Found #{rr.target}!"
+ master_address = rr.target
+ end
}
sleep 3
if master_address
require 'node'