Closed paddor closed 9 years ago
This blows away all of the caching the instance variables are trying to do, and greatly increases the complexity of the resolve method.
I hope this is better. I know, it's still not beautiful. I can't come up with a better solution.
Seems ok :thumbsup:
This commit fixes the issue when "localhost" is tried to be resolved where it used to fail when networking on Mac OSX is disabled. When it's disabled, the file /etc/resolv.conf doesn't exist and thus the method Celluloid::IO::DNSResolver.nameservers returns nil, which shouldn't be a problem because networking isn't really needed to resolve "localhost". It can use static lookup with /etc/hosts.