]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Support current versions of IP-Filter where the device name has changed
authorhno <>
Mon, 6 Jun 2005 04:59:38 +0000 (04:59 +0000)
committerhno <>
Mon, 6 Jun 2005 04:59:38 +0000 (04:59 +0000)
src/IPInterception.cc

index 7ee81d5098eccba75b8fd0453bd5eed572f2b866..dbb3b385b09e0ce03cdd95ed97d77b5e1f338453 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: IPInterception.cc,v 1.9 2004/12/21 17:28:29 robertc Exp $
+ * $Id: IPInterception.cc,v 1.10 2005/06/05 22:59:38 hno Exp $
  *
  * DEBUG: section 89    NAT / IP Interception 
  * AUTHOR: Robert Collins
@@ -99,7 +99,14 @@ clientNatLookup(int fd, struct sockaddr_in me, struct sockaddr_in peer, struct s
     {
         int save_errno;
         enter_suid();
+#ifdef IPL_NAME
+
+        natfd = open(IPL_NAME, O_RDONLY, 0);
+#else
+
         natfd = open(IPL_NAT, O_RDONLY, 0);
+#endif
+
         save_errno = errno;
         leave_suid();
         errno = save_errno;