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:
parent
6845cdfbb8
commit
f3736130c9
|
@ -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; }
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue