summaryrefslogtreecommitdiffstats
path: root/lib/libalias/alias_irc.c
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-01-09 21:13:35 +0000
committereivind <eivind@FreeBSD.org>1998-01-09 21:13:35 +0000
commit781f5bff105e2b341e76efe04ea322b2c9497ca8 (patch)
tree8444286dbbb89a371acf65fe1468b1a998a99e8c /lib/libalias/alias_irc.c
parent97367c5e32c06125a0fe56b5f85facbb1dd625ab (diff)
downloadFreeBSD-src-781f5bff105e2b341e76efe04ea322b2c9497ca8.zip
FreeBSD-src-781f5bff105e2b341e76efe04ea322b2c9497ca8.tar.gz
Teach libalias to work with IPFW firewalls (controlled by a flag).
Obtained from: Yes development tree (+ 10 lines of patches from Charles Mott, original libalias author)
Diffstat (limited to 'lib/libalias/alias_irc.c')
-rw-r--r--lib/libalias/alias_irc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalias/alias_irc.c b/lib/libalias/alias_irc.c
index 3657368..933e3c6 100644
--- a/lib/libalias/alias_irc.c
+++ b/lib/libalias/alias_irc.c
@@ -223,6 +223,9 @@ lFOUND_CTCP:
struct in_addr alias_address; /* Address from aliasing */
u_short alias_port; /* Port given by aliasing */
+ /* Generate firewall hole as appropriate */
+ PunchFWHole(dcc_link);
+
alias_address = GetAliasAddress(link);
iCopy += snprintf(&newpacket[iCopy],
sizeof(newpacket)-iCopy,
OpenPOWER on IntegriCloud