about summary refs log tree commit homepage
path: root/lib/unicorn/socket_helper.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-02 15:34:33 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-02 15:34:33 -0800
commite0160a18ef5c4592d1ac5ff24ba8ae0fd703057c (patch)
tree3f497927f33b9b6fb61a77104488451fadd74e42 /lib/unicorn/socket_helper.rb
parent87fd86ef22b6b80fa75dd8e50f53a4e62e8339f7 (diff)
downloadunicorn-e0160a18ef5c4592d1ac5ff24ba8ae0fd703057c.tar.gz
Oops!
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r--lib/unicorn/socket_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb
index e5b0735..ea8f8c7 100644
--- a/lib/unicorn/socket_helper.rb
+++ b/lib/unicorn/socket_helper.rb
@@ -152,6 +152,7 @@ module Unicorn
       port, addr = Socket.unpack_sockaddr_in(sock.getsockname)
       /:/ =~ addr ? "[#{addr}]:#{port}" : "#{addr}:#{port}"
     end
+    module_function :tcp_name
 
     # Returns the configuration name of a socket as a string.  sock may
     # be a string value, in which case it is returned as-is