Skip to content

Commit ba87bed

Browse files
natali-rs1985c-po
authored andcommitted
suricata: T6624: Fix for service suricata address-groups cannot be used in each other
1 parent a21b795 commit ba87bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conf_mode/service_suricata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def visit(n, v):
5959
temporary_marks.add(n)
6060

6161
for m in v.get('group', []):
62-
m = m.lstrip('!')
62+
m = m.lstrip('!').replace('-', '_')
6363
if m not in source:
6464
raise ConfigError(f'Undefined referenced group "{m}"')
6565
visit(m, source[m])

0 commit comments

Comments
 (0)