Blame SOURCES/0015-Listen-on-IPv6-by-default.patch

90e381
From c5daaedf1efe23b397a5950f5503f5cbfac871c8 Mon Sep 17 00:00:00 2001
90e381
From: Martin Sehnoutka <msehnout@redhat.com>
90e381
Date: Wed, 7 Sep 2016 14:25:28 +0200
90e381
Subject: [PATCH 15/59] Listen on IPv6 by default.
90e381
90e381
---
90e381
 vsftpd.conf   | 14 +++++++++-----
90e381
 vsftpd.conf.5 |  5 +++--
90e381
 2 files changed, 12 insertions(+), 7 deletions(-)
90e381
90e381
diff --git a/vsftpd.conf b/vsftpd.conf
90e381
index db44170..ae6c6c9 100644
90e381
--- a/vsftpd.conf
90e381
+++ b/vsftpd.conf
90e381
@@ -111,12 +111,16 @@ xferlog_std_format=YES
90e381
 # When "listen" directive is enabled, vsftpd runs in standalone mode and
90e381
 # listens on IPv4 sockets. This directive cannot be used in conjunction
90e381
 # with the listen_ipv6 directive.
90e381
-listen=YES
90e381
-#
90e381
-# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
90e381
-# sockets, you must run two copies of vsftpd with two configuration files.
90e381
+listen=NO
90e381
+#
90e381
+# This directive enables listening on IPv6 sockets. By default, listening
90e381
+# on the IPv6 "any" address (::) will accept connections from both IPv6
90e381
+# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
90e381
+# sockets. If you want that (perhaps because you want to listen on specific
90e381
+# addresses) then you must run two copies of vsftpd with two configuration
90e381
+# files.
90e381
 # Make sure, that one of the listen options is commented !!
90e381
-#listen_ipv6=YES
90e381
+listen_ipv6=YES
90e381
 
90e381
 pam_service_name=vsftpd
90e381
 userlist_enable=YES
90e381
diff --git a/vsftpd.conf.5 b/vsftpd.conf.5
90e381
index 0744f85..72bb86f 100644
90e381
--- a/vsftpd.conf.5
90e381
+++ b/vsftpd.conf.5
90e381
@@ -297,8 +297,9 @@ Default: NO
90e381
 .TP
90e381
 .B listen_ipv6
90e381
 Like the listen parameter, except vsftpd will listen on an IPv6 socket instead
90e381
-of an IPv4 one. This parameter and the listen parameter are mutually
90e381
-exclusive.
90e381
+of an IPv4 one. Note that a socket listening on the IPv6 "any" address (::)
90e381
+will accept both IPv6 and IPv4 connections by default. This parameter and the
90e381
+listen parameter are mutually exclusive.
90e381
 
90e381
 Default: NO
90e381
 .TP
90e381
-- 
90e381
2.14.4
90e381