diff options
author | pat <pat@FreeBSD.org> | 2002-10-06 14:39:19 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-10-06 14:39:19 +0800 |
commit | 8e8f7b6e2c89a0fd48d97a8da565023a4edeb196 (patch) | |
tree | 99493e7844936d30c28e12076d911c938b720318 | |
parent | 3ba5641d8c38e6343d10b9f8be811bc31bb6ae01 (diff) | |
download | freebsd-ports-gnome-8e8f7b6e2c89a0fd48d97a8da565023a4edeb196.tar.gz freebsd-ports-gnome-8e8f7b6e2c89a0fd48d97a8da565023a4edeb196.tar.zst freebsd-ports-gnome-8e8f7b6e2c89a0fd48d97a8da565023a4edeb196.zip |
Unbreak transparent proxy mode
PR: ports/43347
Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
Approved by: portmgr
-rw-r--r-- | irc/tircproxy/Makefile | 2 | ||||
-rw-r--r-- | irc/tircproxy/files/patch-ad | 14 |
2 files changed, 5 insertions, 11 deletions
diff --git a/irc/tircproxy/Makefile b/irc/tircproxy/Makefile index a883e2a016b0..c4ac9f7ac5d8 100644 --- a/irc/tircproxy/Makefile +++ b/irc/tircproxy/Makefile @@ -7,7 +7,7 @@ PORTNAME= tircproxy PORTVERSION= 0.4.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= http://bre.klaki.net/programs/tircproxy/ diff --git a/irc/tircproxy/files/patch-ad b/irc/tircproxy/files/patch-ad index 3f46c3ba27fb..a5b0a5f46dee 100644 --- a/irc/tircproxy/files/patch-ad +++ b/irc/tircproxy/files/patch-ad @@ -1,5 +1,5 @@ ---- tircproxy.c.orig Wed Jun 5 19:13:00 2002 -+++ tircproxy.c Wed Jun 5 19:14:46 2002 +--- tircproxy.c.orig Wed Sep 25 02:55:48 2002 ++++ tircproxy.c Wed Sep 25 02:56:17 2002 @@ -131,6 +131,8 @@ # include <netinet/ip_compat.h> # endif @@ -23,14 +23,8 @@ #endif /* Give this thing 10 minutes to get started (paranoia). -@@ -1148,13 +1151,13 @@ - natlook.nl_outip = socketin.sin_addr; - natlook.nl_inip = sloc.sin_addr; - natlook.nl_flags = IPN_TCP; -- natlook.nl_outport = socketin.sin_port; -- natlook.nl_inport = sloc.sin_port; -+ natlook.nl_outport = ntohs(socketin.sin_port); -+ natlook.nl_inport = ntohs(sloc.sin_port); +@@ -1152,9 +1155,9 @@ + natlook.nl_inport = sloc.sin_port; fd = open(IPL_NAT, O_RDONLY); - if (ioctl(fd, SIOCGNATL, &natlook) == -1) |