Project

General

Profile

« Previous | Next » 

Revision faa6dd5b

Added by Ermal Luçi almost 17 years ago

Do not build unparsable rulesets to avoid rule errors.

View differences:

etc/inc/filter.inc
3060 3060

  
3061 3061
					$gateway = lookup_gateway_ip_by_name($config['interfaces'][$ifr]['gateway']);
3062 3062
					$interface = convert_friendly_interface_to_real_interface_name($iface);
3063

  
3064
					$route_to = " route-to ( $interface $gateway ) ";
3065
					$reply_to = " reply-to ( $interface $gateway ) ";
3063
					if (!is_ipaddr($gateway) || empty($interface)) {
3064
						$route_to = " ";
3065
						$reply_to = " ";
3066
					} else {
3067
						$route_to = " route-to ( $interface $gateway ) ";
3068
						$reply_to = " reply-to ( $interface $gateway ) ";
3069
					}
3066 3070

  
3067 3071
					/* Another conversion. Why? */
3068 3072
					$ifalias = convert_friendly_interface_to_friendly_descr($ifr);

Also available in: Unified diff