summaryrefslogtreecommitdiff
path: root/www/oops/files/patch-src_modules_transparent.c
blob: 658f7ff23385df689e3677698ca4e040af3cc6b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$FreeBSD$

--- src/modules/transparent.c.orig
+++ src/modules/transparent.c
@@ -214,7 +214,7 @@
 	natLookup.nl_outip = rq->client_sa.sin_addr;
 	natLookup.nl_flags = IPN_TCP;
 	if (natfd < 0) {
-	    natfd = open(IPL_NAT, O_RDONLY, 0);
+	    natfd = open(IPNAT_NAME, O_RDONLY, 0);
 	    if (natfd < 0) {
 		my_xlog(OOPS_LOG_HTTP|OOPS_LOG_DBG|OOPS_LOG_SEVERE, "transparent/redir(): NAT open failed: %m\n");
 		goto notdone;