Commit ce8d54fd authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

suricata-monitor: More keywords accepted

parent f9c059e0
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=suricata-monitor
PKG_VERSION:=1.0
PKG_RELEASE:=0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
......@@ -58,12 +58,12 @@ def timestamp2unixtime(timestamp):
# check what is enabled
notifications = False
if uci_get('suricata-monitor.notifications.enabled') in ('1', 'yes', 'true'):
if uci_get('suricata-monitor.notifications.enabled') in ('1', 'yes', 'true', 'enabled', 'on'):
notifications = True
log_traffic = False
if uci_get('suricata-monitor.logger.enabled') in ('1', 'yes', 'true'):
if uci_get('suricata-monitor.logger.enabled') in ('1', 'yes', 'true', 'enabled', 'on'):
log_traffic = True
if uci_get('suricata-monitor.logger.debug') in ('1', 'yes', 'true'):
if uci_get('suricata-monitor.logger.debug') in ('1', 'yes', 'true', 'enabled', 'on'):
debug = True
if not notifications and not log_traffic:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment