diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-02 15:34:33 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-02 15:34:33 -0800 |
commit | e0160a18ef5c4592d1ac5ff24ba8ae0fd703057c (patch) | |
tree | 3f497927f33b9b6fb61a77104488451fadd74e42 | |
parent | 87fd86ef22b6b80fa75dd8e50f53a4e62e8339f7 (diff) | |
download | unicorn-e0160a18ef5c4592d1ac5ff24ba8ae0fd703057c.tar.gz |
Oops!
-rw-r--r-- | lib/unicorn/socket_helper.rb | 1 |
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 |