diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-17 13:24:52 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-17 13:24:52 -0700 |
commit | ec8972dbe267dc0d21cd780c41f362a6580a4a89 (patch) | |
tree | c33c088c87a16fff5d5ed47e4c33e6af6f15f4ce | |
parent | de6ebc470f35d9c29d86fb7078cccc5bfa191613 (diff) | |
download | unicorn-ec8972dbe267dc0d21cd780c41f362a6580a4a89.tar.gz |
This is to be consistent with the existing "pid" and std{err,out}_path options which also take paths relative to "~"
-rw-r--r-- | lib/unicorn/socket.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn/socket.rb b/lib/unicorn/socket.rb index 4913261..d8e44f4 100644 --- a/lib/unicorn/socket.rb +++ b/lib/unicorn/socket.rb @@ -75,6 +75,7 @@ module Unicorn def bind_listen(address = '0.0.0.0:8080', backlog = 1024) return address unless String === address + address = File.expand_path(address) if address[0..0] == "~" domain, bind_addr = if address[0..0] == "/" if File.exist?(address) if File.socket?(address) |