Sha256: c3afa568691f918d2509bad91b71e2e955bf8cc968495e75acb1d408ce8c6e44
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
=begin This file is part of the Arachni-RPC EM project and may be subject to redistribution and commercial restrictions. Please see the Arachni-RPC EM web site for more information on licensing and terms of use. =end module Arachni module RPC module EM # # Helper methods to be included in EventMachine::Connection classes # # @author: Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> # module ConnectionUtilities # # @return [String] IP address of the client # def peer_ip_addr begin if peername = get_peername Socket.unpack_sockaddr_in( peername )[1] else 'n/a' end rescue 'n/a' end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems