about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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