Revision f699ed89
Added by Ermal Luçi over 16 years ago
etc/inc/filter.inc | ||
---|---|---|
368 | 368 |
$oic = array(); |
369 | 369 |
$oic['if'] = get_real_interface($if); |
370 | 370 |
$oic['ip'] = get_interface_ip($if); |
371 |
if (!is_ipaddr($oc['ipaddr']) && !empty($oc['ipaddr'])) |
|
372 |
$oic['type'] = $oc['ipaddr']; |
|
371 | 373 |
$oic['sn'] = get_interface_subnet($if); |
372 | 374 |
$oic['mtu'] = $oc['mtu']; |
373 | 375 |
$oic['descr'] = $ifdetail; |
... | ... | |
1891 | 1893 |
EOD; |
1892 | 1894 |
} |
1893 | 1895 |
} |
1894 |
switch ($oc['ip']) {
|
|
1896 |
switch ($oc['type']) {
|
|
1895 | 1897 |
case "pptp": |
1896 | 1898 |
/* XXX: The proto gre rules should really be removed when the pptp patch is guaranted to work */ |
1897 | 1899 |
$ipfrules .= <<<EOD |
Also available in: Unified diff
More fixes to the switch to the FilterIflist.