diff options
author | jim-p <jim@pingle.org> | 2010-03-11 12:58:01 -0500 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-03-11 13:03:51 -0500 |
commit | 998f77a81fd256a78f21e2af9a91be9bac1eb35e (patch) | |
tree | eeb82c2af750998e6cd881d35d17d0dabf612487 /etc/inc/easyrule.inc | |
parent | cd6a4b1d3329c5789d4e27b9a8a6b3bdcedbbd0e (diff) | |
download | pfsense-998f77a81fd256a78f21e2af9a91be9bac1eb35e.zip pfsense-998f77a81fd256a78f21e2af9a91be9bac1eb35e.tar.gz |
Fix EasyRule port check so it is only tested when the protocol is TCP or UDP. Resolves #412
While I'm here, make EasyRule put a description in when writing the config so it shows up properly in the config history.
Diffstat (limited to 'etc/inc/easyrule.inc')
-rw-r--r-- | etc/inc/easyrule.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/easyrule.inc b/etc/inc/easyrule.inc index 2b17ed5..2aa4357 100644 --- a/etc/inc/easyrule.inc +++ b/etc/inc/easyrule.inc @@ -2,8 +2,8 @@ /* easyrule.inc.php - Copyright (C) 2009 Jim Pingle (jpingle@gmail.com) - Sponsored By Anathematic @ pfSense Forums + Copyright (C) 2009-2010 Jim Pingle (jpingle@gmail.com) + Originally Sponsored By Anathematic @ pfSense Forums All rights reserved. Redistribution and use in source and binary forms, with or without @@ -251,7 +251,7 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport) { $a_filter[] = $filterent; - write_config(); + write_config($filterent['descr']); $retval = filter_configure(); header("Location: firewall_rules.php?if={$int}"); exit; |