diff --git a/luciexpress/htdocs/js/uci.js b/luciexpress/htdocs/js/uci.js index 29f0dc575..d5f9a1327 100644 --- a/luciexpress/htdocs/js/uci.js +++ b/luciexpress/htdocs/js/uci.js @@ -476,7 +476,7 @@ var self = this; if(!(".type" in item)) throw new Error("Missing '.type' parameter!"); var type = section_types[self[".name"]][item[".type"]]; - if(!type) throw Error("Trying to create section of unrecognized type!"); + if(!type) throw Error("Trying to create section of unrecognized type ("+self[".name"]+"."+item[".type"]+")"); // TODO: validate values! var values = {}; diff --git a/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.html b/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.html index def2dff96..c61d627f3 100644 --- a/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.html +++ b/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.html @@ -7,11 +7,11 @@ {{'internet.exposed_host.info'|translate}} - + - +

Warning: By using the exposed host function you bypass the firewall of your {{config.friendly_name}}. Please make sure that your computer is protected against attacks from Internet. The following ports will not be forwarded: {{ nonforwardedPorts || 'None'}}.

@@ -21,7 +21,7 @@ {{wan.ip}} - + diff --git a/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.js b/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.js index b255df88f..3dc714b0b 100644 --- a/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.js +++ b/luciexpress/htdocs/plugins/internet/pages/internet.exposed_host.js @@ -10,11 +10,11 @@ $juci.module("internet") }).always(function(){ next(); }); }, function(next){ - if($uci.firewall.dmzhost == undefined){ - $uci.firewall.create({".type": "dmzhost", ".name": "dmzhost"}).done(function(){ + if($uci.firewall.dmz == undefined){ + $uci.firewall.create({".type": "dmz", ".name": "dmz"}).done(function(){ next(); }).fail(function(){ - throw new Error("Could not create required dmzhost section in config firewall!"); + throw new Error("Could not create required dmz section in config firewall!"); }); } else { next();