aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/spamd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/spamd.inc b/config/spamd.inc
index 6ee72ad7..48aea12e 100644
--- a/config/spamd.inc
+++ b/config/spamd.inc
@@ -167,7 +167,7 @@ function spamd_generate_rules($type) {
switch($type) {
case 'rdr':
$natrules .= "\n# spam table \n";
- $wanif = $FilterIflist["wan"]['if'];
+ $wanif = get_real_interface("wan");
$natrules .= "table <whitelist> persist\n";
$natrules .= "table <blacklist> persist\n";
$natrules .= "table <spamd> persist\n";