lib/ruby_skynet/common.rb in ruby_skynet-1.1.0 vs lib/ruby_skynet/common.rb in ruby_skynet-1.1.1

- old
+ new

@@ -25,10 +25,10 @@ return BSON.deserialize(bytebuf) end # Returns the local ip address being used by this machine to talk to the # internet. By default connects to Google and determines what IP Address is used locally - def self.local_ip_address(remote_ip = '64.233.187.99') + def self.local_ip_address(remote_ip = 'google.com') @@local_ip_address ||= ::UDPSocket.open {|s| s.connect(remote_ip, 1); s.addr.last } end end end \ No newline at end of file