diff --git a/mod_evasive-http11request.patch b/mod_evasive-http11request.patch new file mode 100644 index 0000000..7720d2c --- /dev/null +++ b/mod_evasive-http11request.patch @@ -0,0 +1,11 @@ +--- mod_evasive/test.pl.orig 2003-08-30 22:22:50.000000000 +0200 ++++ mod_evasive/test.pl 2019-02-12 10:31:26.606810952 +0100 +@@ -10,7 +10,7 @@ + my($SOCKET) = new IO::Socket::INET( Proto => "tcp", + PeerAddr=> "127.0.0.1:80"); + if (! defined $SOCKET) { die $!; } +- print $SOCKET "GET /?$_ HTTP/1.0\n\n"; ++ print $SOCKET "GET /?$_ HTTP/1.1\r\nHost: 127.0.0.1\r\n\r\n"; + $response = <$SOCKET>; + print $response; + close($SOCKET); diff --git a/mod_evasive.spec b/mod_evasive.spec index 506f8a4..bd9434f 100644 --- a/mod_evasive.spec +++ b/mod_evasive.spec @@ -1,6 +1,6 @@ Name: mod_evasive Version: 1.10.1 -Release: 29%{?dist} +Release: 30%{?dist} Summary: Denial of Service evasion module for Apache Group: System Environment/Daemons @@ -8,6 +8,7 @@ License: GPLv2+ URL: http://www.zdziarski.com/blog/?page_id=442 Source0: http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_%{version}.tar.gz Source1: mod_evasive.conf +Patch1: mod_evasive-http11request.patch BuildRequires: httpd-devel, gcc Requires: httpd @@ -49,6 +50,9 @@ install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ %changelog +* Tue Feb 12 2019 Ján ONDREJ (SAL) - 1.10.1-30 +- Fix HTTP connection in test.pl script. + * Sun Jul 15 2018 Ján ONDREJ (SAL) - 1.10.1-29 - Added gcc to build requires.