summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/rules.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-26 10:57:13 -0700
committerJohn Denker <jsd@av8n.com>2012-07-29 15:32:37 -0700
commit9aa998757a8736cef02fd92050eacbb2a6fb5180 (patch)
tree18ae3d172893279aecaf12df94cb468bf887aa72 /ucspi-tcp-0.88/rules.c
parent6e8083ff4ffe3fd2b6d337386637a2b5c1378cf7 (diff)
patch to support IPv6 in tcpserver
Diffstat (limited to 'ucspi-tcp-0.88/rules.c')
-rw-r--r--ucspi-tcp-0.88/rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucspi-tcp-0.88/rules.c b/ucspi-tcp-0.88/rules.c
index 1840360..4fc2354 100644
--- a/ucspi-tcp-0.88/rules.c
+++ b/ucspi-tcp-0.88/rules.c
@@ -64,7 +64,7 @@ static int doit(void (*callback)(char *,unsigned int),char *ip,char *host,char *
if (!stralloc_copys(&rules_name,ip)) return -1;
while (rules_name.len > 0) {
- if (ip[rules_name.len - 1] == '.') {
+ if (ip[rules_name.len - 1] == '.' || ip[rules_name.len - 1] == ':') {
r = dorule(callback);
if (r) return r;
}