lib/facter/util/resolvers/ffi/hostname.rb in facter-4.4.0 vs lib/facter/util/resolvers/ffi/hostname.rb in facter-4.4.1
- old
+ new
@@ -34,10 +34,10 @@
return unless res.zero?
raw_hostname.read_string
end
- def self.getffiaddrinfo(hostname) # rubocop:disable Metrics/AbcSize
+ def self.getffiaddrinfo(hostname)
ret = FFI::MemoryPointer.new(:pointer)
hints = Facter::Util::Resolvers::Ffi::AddrInfo.new
hints[:ai_family] = Socket::AF_UNSPEC
hints[:ai_socketype] = Socket::SOCK_STREAM