From 998f77a81fd256a78f21e2af9a91be9bac1eb35e Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 11 Mar 2010 12:58:01 -0500 Subject: 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. --- etc/inc/easyrule.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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; -- cgit v1.1