From cc6ffaf42307ab3bd072c58bd492fb5c5204e687 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 2 Oct 2009 13:30:58 -0700 Subject: const: DEFAULT_PORT as a string doesn't make sense TCP ports are always integers, and it was always allowing a randomly-generated value of 8080 through in the unused_port method of test_helper. --- lib/unicorn/const.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index bb33abb..e75effc 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -10,7 +10,7 @@ module Unicorn UNICORN_VERSION="0.92.0" DEFAULT_HOST = "0.0.0.0" # default TCP listen host address - DEFAULT_PORT = "8080" # default TCP listen port + DEFAULT_PORT = 8080 # default TCP listen port DEFAULT_LISTEN = "#{DEFAULT_HOST}:#{DEFAULT_PORT}" # The basic max request size we'll try to read. -- cgit v1.2.3-24-ge0c7