From: Eric Wong <normalperson@yhbt.net>
To: mongrel-unicorn@rubyforge.org
Subject: [PATCH] configurator: add :ipv6only directive
Date: Tue, 7 Jun 2011 14:05:11 -0700 [thread overview]
Message-ID: <20110607210511.GA16295@dcvr.yhbt.net> (raw)
In-Reply-To: <20110607022828.GA24280@dcvr.yhbt.net>
Eric Wong <normalperson@yhbt.net> wrote:
> Unicorn itself supports IPv6, too, but nobody uses/needs it.
> I'll add :ipv6only support shortly (probably tomorrow).
Pushed to unicorn.git (c3880bb0cc00821d1715a7dd94b0b76a03a7ace0)
Documentation below:
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index b6ad022..0b84d53 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -281,6 +281,22 @@ class Unicorn::Configurator
#
# Default: +true+ in \Unicorn 3.4+, +false+ in Rainbows!
#
+ # [:ipv6only => true or false]
+ #
+ # This option makes IPv6-capable TCP listeners IPv6-only and unable
+ # to receive IPv4 queries on dual-stack systems. A separate IPv4-only
+ # listener is required if this is true.
+ #
+ # This option is only available for Ruby 1.9.2 and later.
+ #
+ # Enabling this option for the IPv6-only listener and having a
+ # separate IPv4 listener is recommended if you wish to support IPv6
+ # on the same TCP port. Otherwise, the value of \env[\"REMOTE_ADDR\"]
+ # will appear as an ugly IPv4-mapped-IPv6 address for IPv4 clients
+ # (e.g ":ffff:10.0.0.1" instead of just "10.0.0.1").
+ #
+ # Default: Operating-system dependent
+ #
# [:tries => Integer]
#
# Times to retry binding a socket if it is already in use
--
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
prev parent reply other threads:[~2011-06-07 21:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 2:28 [PATCH] examples/nginx.conf: add ipv6only comment Eric Wong
2011-06-07 17:04 ` Eric Wong
2011-06-07 21:05 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110607210511.GA16295@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).