X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-app-unbound%2Fluasrc%2Fmodel%2Fcbi%2Funbound.lua;h=6d876c2c838f523930adedfe2fc0e184f2335610;hb=6a7eaeb4860bcdfac0ecf4349afc396212c1d467;hp=22f020021ca1bfa6276e4dc5cbe7456ad5d8505a;hpb=c5287ef15fcc92e8c4a5f0b13051c6fd52aead07;p=project%2Fluci.git diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua index 22f020021..6d876c2c8 100644 --- a/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua +++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua @@ -1,5 +1,6 @@ -- Copyright 2008 Steven Barth -- Copyright 2016 Eric Luehrsen +-- Copyright 2016 Dan Luedtke -- Licensed to the public under the Apache License 2.0. m = Map("unbound", translate("Recursive DNS"), @@ -80,6 +81,17 @@ tlm = s:taboption("service", Value, "ttl_min", translate("TTL Minimum:"), tlm.datatype = "and(uinteger,min(0),max(600))" tlm.rmempty = false +d64 = s:taboption("service", Flag, "dns64", translate("Enable DNS64:"), + translate("Enable the DNS64 module")) +d64.rmempty = false + +pfx = s:taboption("service", Value, "dns64_prefix", translate("DNS64 Prefix:"), + translate("Prefix for generated DNS64 addresses")) +pfx.datatype = "ip6addr" +pfx.placeholder = "64:ff9b::/96" +pfx.optional = true +pfx:depends({ dns64 = "1" }) + --Resource Tuning Tab rsn = s:taboption("resource", ListValue, "recursion", translate("Recursion Strength:"),