commit: c9904ab42f5d093c50a5b611de3a3b083e01eeb9
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 1 12:33:07 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Dec 1 12:33:07 2020 +0000
URL: https://gitweb.gentoo.org/proj/apache.git/commit/?id=c9904ab4
2.4/init: Fix regexp for interface binding detection
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
2.4/init/apache2.initd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
index 941dad9..e834b44 100755
--- a/2.4/init/apache2.initd
+++ b/2.4/init/apache2.initd
@@ -37,7 +37,7 @@ depend() {
after sshd
if ! echo ${rc_need} | grep -Fq "net." ; then
local x warn_addr
- for x in $(virtualhosts | grep '^\(\[\|\)[[:digit:]]' | sed
's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
+ for x in $(virtualhosts | grep '^\(\[\|\*:\|\)[[:digit:]]' |
sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
case "${x}" in
\*:80|\*.443) ;;
*) warn_addr="${warn_addr} ${x}" ;;