Skip to content

Commit d312667

Browse files
authored
fix(snort): removed default network, fixed fetch of default homenet (#1510)
1 parent b5539af commit d312667

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/ns-api/files/ns.snort

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ def __save_settings():
187187
def __settings():
188188
e_uci = EUci()
189189
try:
190-
home_net = e_uci.get('snort', 'snort', 'home_net', default='').split(' ')
190+
home_net = e_uci.get('snort', 'snort', 'home_net', default=None).split(' ')
191191
except:
192192
home_net = []
193-
if not home_net:
193+
if len(home_net) < 1:
194194
home_net = get_snort_homenet(e_uci, include_vpn=False)
195195

196196
return {

packages/snort3/files/snort.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ config snort 'snort'
5252
option enabled '0' # one of [0, 1]
5353
option manual '1' # one of [0, 1]
5454
option oinkcode '' # a string
55-
option home_net '192.168.1.0/24' # a string
5655
option external_net 'any' # a string
5756
option config_dir '/etc/snort' # a path string
5857
option temp_dir '/var/snort.d' # a path string

0 commit comments

Comments
 (0)