Merge pull request #4652 from TDT-AG/pr/20201211-luci-app-firewall
authorFlorian Eckert <Eckert.Florian@googlemail.com>
Wed, 16 Dec 2020 11:56:12 +0000 (12:56 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 11:56:12 +0000 (12:56 +0100)
luci-app-firewall: map proto '*' and 'any' to all on rule config

applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js

index 32998c2ff899a20050ab70d88e385b713b865344..d365467835fb1209e0dae7914238baeced317ee4 100644 (file)
@@ -522,6 +522,9 @@ return baseclass.extend({
                                }
                        }, this));
 
+                       if (cfgvalue == '*' || cfgvalue == 'any' || cfgvalue == 'all')
+                               cfgvalue = 'all';
+
                        return cfgvalue;
                },