From 23fcda1c47db663ab8b809dc1dcae2726709dcc5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Sep 2009 19:18:19 -0700 Subject: Use Configurator#expand_addr in HttpServer#listen 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. --- lib/unicorn.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/unicorn.rb') 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 -- cgit v1.2.3-24-ge0c7