mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Squidclamav uses curl to resolve all kind of addresses which the system allow. If the remote address is an IPv6 address, squidclamav hangs forever. Nico Prenzel has found a solution to force the usage of IPv4 to prevent from this issue. Fixes #10376.
14 lines
583 B
Diff
14 lines
583 B
Diff
diff -Nur a/src/squidclamav.c b/src/squidclamav.c
|
|
--- a/src/squidclamav.c 2012-10-29 09:46:06.000000000 +0100
|
|
+++ b/src/squidclamav.c 2013-07-06 19:10:56.375292374 +0200
|
|
@@ -413,6 +413,9 @@
|
|
/* Suppress error: SSL certificate problem, verify that the CA cert is OK */
|
|
curl_easy_setopt (eh, CURLOPT_SSL_VERIFYHOST, 0);
|
|
curl_easy_setopt (eh, CURLOPT_SSL_VERIFYPEER, 0);
|
|
+
|
|
+ /* Prevent squidclamav from using IPv6 - fix by Nico Prenzel */
|
|
+ curl_easy_setopt (eh, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
|
}
|
|
}
|
|
/* create a squidguard child process and setup pipes */
|