about summary refs log tree commit homepage
path: root/lib/unicorn/socket_helper.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-30 13:41:27 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-30 13:45:47 -0700
commit407724b49069ee539e9a918ce75e9d1290552471 (patch)
tree93769645f147b45e52081ee18a30741d5b07aaaf /lib/unicorn/socket_helper.rb
parent9cc4f87353b84f5229d4a8bae78260c24cd02154 (diff)
downloadunicorn-407724b49069ee539e9a918ce75e9d1290552471.tar.gz
It's compatible with both Ruby 1.8 and 1.9 without
needing a Range object.
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r--lib/unicorn/socket_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb
index e287955..f792562 100644
--- a/lib/unicorn/socket_helper.rb
+++ b/lib/unicorn/socket_helper.rb
@@ -76,7 +76,7 @@ module Unicorn
     def bind_listen(address = '0.0.0.0:8080', opt = {})
       return address unless String === address
 
-      sock = if address[0..0] == "/"
+      sock = if address[0] == ?/
         if File.exist?(address)
           if File.socket?(address)
             if self.respond_to?(:logger)