about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-27 19:18:19 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-27 19:18:19 -0700
commit23fcda1c47db663ab8b809dc1dcae2726709dcc5 (patch)
tree1f4dd5a8d22424f16b873463923cf6741cc66d5a /lib/unicorn.rb
parent134a0b59c87a0f42653ca4bce8900a3cb1144ca9 (diff)
downloadunicorn-23fcda1c47db663ab8b809dc1dcae2726709dcc5.tar.gz
This may be redundant for the "normal" configuration file
directive, but allows the same syntax to be used in after_fork
hooks where HttpServer#listen() may be called.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index bc5ba23..392d301 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -182,6 +182,7 @@ module Unicorn
     # retried indefinitely, this is useful when workers belonging to
     # different masters are spawned during a transparent upgrade.
     def listen(address, opt = {}.merge(listener_opts[address] || {}))
+      address = config.expand_addr(address)
       return if String === address && listener_names.include?(address)
 
       delay = opt[:delay] || 0.5