diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-10-06 06:39:19 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-10-06 06:39:19 +0000 |
commit | e4bb08a4a7051960069b57e965a2754cd64bb6a2 (patch) | |
tree | 6ff3dc11f7b728e0e5f60dbb4f7233188b29645d /irc/tircproxy | |
parent | Update to 1.3 (diff) |
Unbreak transparent proxy mode
PR: ports/43347
Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
Approved by: portmgr
Notes
Notes:
svn path=/head/; revision=67460
Diffstat (limited to 'irc/tircproxy')
-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) |