Sha256: 3b58b8a074d579ac6d05680f72a56fea72d43d3aff31d20e2f843e0e98b664bf
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 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> # <zapotek@segfault.gr> # @version: 0.1 # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-rpc-em-0.1.1 | lib/arachni/rpc/em/connection_utilities.rb |