mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Revert "proxy.cgi: Fix for Bug #12826 'squid >=5 crashes on literal IPv6 addresses'"
This reverts commit e0be9eab47.
This change is now producing problems on IPv6-enabled systems as it will
deny access to any website that is IPv6-enabled as well, even if the
client connected using IPv4.
I have tested if squid is now running on fine on systems where IPv6 is
disabled and can confirm that its running just fine.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
cfb6d9c7fd
commit
a1bb2fb585
@@ -3525,19 +3525,9 @@ END
|
||||
$_ =~ s/__PROXY_PORT__/$proxysettings{'PROXY_PORT'}/;
|
||||
print FILE $_;
|
||||
}
|
||||
print FILE "\n#End of custom includes\n\n";
|
||||
print FILE "\n#End of custom includes\n";
|
||||
close (ACL);
|
||||
}
|
||||
|
||||
print FILE <<END
|
||||
# Prevent ipv6 requests to avoid crash in squid > 5.x
|
||||
acl to_ipv6 dst ipv6
|
||||
acl from_ipv6 src ipv6
|
||||
http_access deny to_ipv6
|
||||
http_access deny from_ipv6
|
||||
END
|
||||
;
|
||||
|
||||
if ((!-z $extgrp) && ($proxysettings{'AUTH_METHOD'} eq 'ncsa') && ($proxysettings{'NCSA_BYPASS_REDIR'} eq 'on')) { print FILE "\nredirector_access deny for_extended_users\n"; }
|
||||
|
||||
# Check if squidclamav is enabled.
|
||||
|
||||
Reference in New Issue
Block a user