ruleset: properly handle zone names starting with a digit
authorJo-Philipp Wich <jo@mein.io>
Wed, 5 Oct 2022 21:50:18 +0000 (23:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 5 Oct 2022 21:50:18 +0000 (23:50 +0200)
commit3db474135c62d1eeea7a80dd151d53d94005f1d5
treec66a2dc7022d3d0b7dfb9e0a3b6be714585d3b2f
parent43d8ef516747aaede640d292b0326a66186809a8
ruleset: properly handle zone names starting with a digit

When forming the device and subnet define name, prepend zone name with
an underscore in case it starts with a digit in order to avoid generating
invalid syntax.

Ref: https://github.com/openwrt/openwrt/issues/10693
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc