diff options
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort_interfaces_edit.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index 90f48a4b..0282723b 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -595,13 +595,11 @@ function enable_change(enable_change) { <select name="blockoffendersip" class="formfld" id="blockoffendersip"> <?php foreach (array("src", "dst", "both") as $btype) { - if ($value['snortlisttype'] == 'whitelist') { - if ($btype == $pconfig['blockoffendersip']) - echo "<option value='{$btype}' selected>"; - else - echo "<option value='{$btype}'>"; - echo htmlspecialchars($btype) . '</option>'; - } + if ($btype == $pconfig['blockoffendersip']) + echo "<option value='{$btype}' selected>"; + else + echo "<option value='{$btype}'>"; + echo htmlspecialchars($btype) . '</option>'; } ?> </select> |