reporting: more name clearing for safety

See: https://github.com/opnsense/src/commit/499f60b10b6
This commit is contained in:
Franco Fichtner 2023-04-14 10:03:24 +02:00
parent 55dacd0f84
commit cc297e741b

View File

@ -91,8 +91,9 @@ netflow_setup_interface()
conf="11"
echo "setup $interface"
fi;
# avoid dots [.] in interface names to avoid issues with ngctl
interface=`echo $interface | sed 's/\./_/g'`
# prevent using special netgraph characters in interface names
interface=$(echo $interface | sed 's/[.:]/_/g')
# remove earlier setup (if any)
/usr/sbin/ngctl shutdown netflow_$interface: >/dev/null 2>&1