about summary refs log tree commit homepage
path: root/lib/yahns/config.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-29 00:53:39 +0000
committerEric Wong <e@80x24.org>2013-10-29 02:37:05 +0000
commit22d933a40c8535c09752a75033e45ad5f08fc520 (patch)
treeb5694a96506dad00b69642b42c50dabdbd0a47da /lib/yahns/config.rb
parentfd5844b2baef6c1acaca9ca1eca0509e3a4f840d (diff)
downloadyahns-22d933a40c8535c09752a75033e45ad5f08fc520.tar.gz
In case we (and Linux) supports other values in the future,
we can update it then.  Until now, ensure users only set
true or false for this option.

commit 03580a19afe5ce76323a7366b92243a94d445de1 in unicorn
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r--lib/yahns/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb
index ebc3bda..01fcac7 100644
--- a/lib/yahns/config.rb
+++ b/lib/yahns/config.rb
@@ -187,7 +187,7 @@ class Yahns::Config # :nodoc:
       Integer === value or
         raise ArgumentError, "#{var}: not an integer: #{key}=#{value.inspect}"
     end
-    [ :ipv6only ].each do |key|
+    [ :ipv6only, :reuseport ].each do |key|
       (value = options[key]).nil? and next
       [ true, false ].include?(value) or
         raise ArgumentError, "#{var}: not boolean: #{key}=#{value.inspect}"