Fix a regression from 3.4 behaviour where the destination of a redirect rule

could be either a hostname or an IP address (now it can only be an IP#)
This commit is contained in:
darrenr 2004-11-21 03:44:59 +00:00
parent 6845cdfbb8
commit f3736130c9
1 changed files with 2 additions and 2 deletions

View File

@ -281,9 +281,9 @@ rhaddr: addr { $$.a = $1.a; $$.m = $1.m; }
;
dip:
ipv4 { nat->in_inip = $1.s_addr;
hostname { nat->in_inip = $1.s_addr;
nat->in_inmsk = 0xffffffff; }
| ipv4 ',' ipv4 { nat->in_flags |= IPN_SPLIT;
| hostname ',' hostname { nat->in_flags |= IPN_SPLIT;
nat->in_inip = $1.s_addr;
nat->in_inmsk = $3.s_addr; }
;