about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-06 02:26:25 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-09 19:50:52 -0800
commitbf82641c8f8efdb0516730febfbb0b2498e1224e (patch)
tree510f54bb6c342b4059a6959837de63f2881f8957 /lib/unicorn.rb
parent55933a8ccccc7f6e657ce826fe3135ab8ce841aa (diff)
downloadunicorn-bf82641c8f8efdb0516730febfbb0b2498e1224e.tar.gz
Additionally, provide Socket#unicorn_addr which makes it
easy to determine whether a given Socket matches one in
the config.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 943ad99..a17ab2d 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -74,7 +74,7 @@ module Unicorn
         instance_variable_set("@#{key.to_s.downcase}", value)
       end
 
-      @socket = Socket.unicorn_tcp_server(@host, @port, 1024)
+      @socket = Socket.unicorn_server_new("#{@host}:#{@port}", 1024)
     end
 
     # Does the majority of the IO processing.  It has been written in Ruby using