]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Apr 2010 12:43:15 +0000 (00:43 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Apr 2010 12:43:15 +0000 (00:43 +1200)
Bug 2895: TPROXY2 compile error

src/forward.cc

index 20ac39aa9f0985ae92a50db81b8cd0501adae1dc..48b4288fa580c5a973e676c0c0e25cad885dea11 100644 (file)
@@ -914,7 +914,7 @@ FwdState::connectStart()
     if (!fs->_peer && request->flags.spoof_client_ip) {
         // try to set the outgoing address using TPROXY v2
         // if it fails we abort any further TPROXY actions on this connection
-        if (IpInterceptor.SetTproxy2OutgoingAddr(int fd, const IpAddress &src) == -1) {
+        if (IpInterceptor.SetTproxy2OutgoingAddr(fd, src) == -1) {
             request->flags.spoof_client_ip = 0;
         }
     }