lib/resolve/hostname.rb in resolve-hostname-0.0.4 vs lib/resolve/hostname.rb in resolve-hostname-0.1.0
- old
+ new
@@ -88,10 +88,10 @@
is_address = false
begin
IPAddr.new(name)
is_address = true
- rescue @invalid_address_error => e
+ rescue @invalid_address_error
# ignore
end
return name if is_address
if @system_resolver_enabled