diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-01-31 22:10:23 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-01-31 22:10:23 -0500 |
commit | 39a684dbf1648d8ec85cec2111efe1275ba812ad (patch) | |
tree | 599fb0484ba10b0cd5a67e4fe16e304f701c24c9 /etc | |
parent | 554e22118b4611737d728789cc6cc5e30dbdbb4a (diff) | |
download | pfsense-39a684dbf1648d8ec85cec2111efe1275ba812ad.zip pfsense-39a684dbf1648d8ec85cec2111efe1275ba812ad.tar.gz |
Log an error when we cannot lookup a gateways interface.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1fc59e4..81d5010 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1679,7 +1679,9 @@ function generate_user_filter_rule($rule, $ngcounter) { $gatewayip = file_get_contents("{$g['tmp_path']}/{$int}_router"); $gatewayip = rtrim($gatewayip); if (is_ipaddr($gatewayip)) { - $aline['route'] = " route-to ( {$int} {$gatewayip} ) "; + if($int) + $aline['route'] = " route-to ( {$int} {$gatewayip} ) "; + log_error("An error occurred while trying to determine the real interface name for the gateway $gateway"); } } else { log_error("Could not find {$g['tmp_path']}/{$int}_router. Needed for dhcp gateway information"); |