diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-11-18 08:48:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 08:48:59 +0100 |
commit | ceae469a193d54103820d2bf1f599b8f0a26c363 (patch) | |
tree | d469542492019c87918419a512e7f44e717d3afa | |
parent | 5a0a7cfa74bb4377f4994efc5b6c4abb3d6c94a9 (diff) | |
parent | fa702c0387dd09a43b1d447e627d118f782ac767 (diff) |
Merge pull request #4579 from TDT-AG/pr/20201106-luci-proto-qmi
luci-proto-qmi: add missing proto default options
-rw-r--r-- | protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js index d496808b0a..6a8c2b6ac5 100644 --- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js +++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js @@ -103,5 +103,22 @@ return network.registerProtocol('qmi', { o.value('ipv4', 'IPv4'); o.value('ipv6', 'IPv6'); o.default = 'ipv4v6'; + + o = s.taboption('advanced', form.Flag, 'defaultroute', + _('Use default gateway'), + _('If unchecked, no default route is configured')); + o.default = o.enabled; + + o = s.taboption('advanced', form.Value, 'metric', + _('Use gateway metric')); + o.placeholder = '0'; + o.datatype = 'uinteger'; + o.depends('defaultroute', '1'); + + o = s.taboption('advanced', form.Flag, 'peerdns', + _('Use DNS servers advertised by peer'), + _('If unchecked, the advertised DNS server addresses are ignored')); + o.default = o.enabled; + } }); |