diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua | 12 | ||||
-rw-r--r-- | applications/luci-multiwan/root/lib/uci/schema/default/multiwan | 23 |
2 files changed, 17 insertions, 18 deletions
diff --git a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua index 64c72387f..8786ebc83 100644 --- a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua +++ b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua @@ -26,12 +26,6 @@ default_route.default = "balancer" default_route.optional = false default_route.rmempty = false -resolv_conf = s:option(Value, "resolv_conf", translate("DNS Configuration File"), - translate("Writeable resolv file, dnsmasq defaults to /tmp/resolv.conf.auto")) -resolv_conf.default = "/tmp/resolv.conf.auto" -resolv_conf.optional = false -resolv_conf.rmempty = false - s = m:section(TypedSection, "interface", translate("WAN Interfaces"), translate("Health Monitor detects and corrects network changes and failed connections.")) s.addremove = true @@ -113,6 +107,12 @@ failover_to.default = "balancer" failover_to.optional = false failover_to.rmempty = false +dns = s:option(Value, "dns", translate("DNS Server(s)")) +dns:value("", translate("Auto")) +dns.default = "" +dns.optional = false +dns.rmempty = true + s = m:section(TypedSection, "mwanfw", translate("Multi-WAN Traffic Rules"), translate("Configure rules for directing outbound traffic through specified WAN Uplinks.")) s.template = "cbi/tblsection" diff --git a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan index 61f34e703..d85d98d5e 100644 --- a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan +++ b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan @@ -15,41 +15,35 @@ config variable option section 'multiwan.multiwan' option required true -config variable - option name 'resolv_conf' - option title 'DNS configuration file' - option section 'multiwan.multiwan' - option required true - config section option name 'interface' - option title 'WAN Uplinks Configuration' + option title 'WAN Interfaces' option named true option required true config variable option name 'weight' - option title 'Load Balancer Weight' + option title 'Load Balancer Distribution' option section 'multiwan.interface' option datatype 'integer' option required true config variable option name 'health_interval' - option title 'Health Monitor - Interval' + option title 'Health Monitor Interval' option section 'multiwan.multiwan' option datatype 'integer' option required true config variable option name 'icmp_hosts' - option title 'Health Monitor - ICMP Host(s)' + option title 'Health Monitor ICMP Host(s)' option section 'multiwan.interface' option required true config variable option name 'timeout' - option title 'Health Monitor - ICMP Timeout' + option title 'Health Monitor ICMP Timeout' option section 'multiwan.interface' option datatype 'integer' option required true @@ -74,6 +68,11 @@ config variable option section 'multiwan.interface' option required true +config variable + option name 'dns' + option title 'DNS Server(s)' + option section 'multiwan.interface' + config section option name 'mwanfw' option title 'Multi-WAN Traffic Rules' @@ -101,7 +100,7 @@ config section config section option name 'wanrule' - option title 'WAN Traffic Decision' + option title 'WAN Uplink' option section 'multiwan.mwanfw' option required true |