From e0160a18ef5c4592d1ac5ff24ba8ae0fd703057c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Feb 2011 15:34:33 -0800 Subject: socket_helper: export tcp_name as a module_function Oops! --- lib/unicorn/socket_helper.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-24-ge0c7