luci-mod-network: expose peerdns option for dhcpv6
authorJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 20:42:24 +0000 (22:42 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 20:44:01 +0000 (22:44 +0200)
Ref: https://github.com/openwrt/luci/commit/2be01cbfcb34746d9713173a60c3f8a69c554a68#commitcomment-111035308
Fixes: 2be01cbfcb ("luci-mod-network: restrict peerdns option to protocols that implemenent it")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b2476ba71de964828def0967793556bdb141d7e2)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index d0ffe02ee93b9640287b15bbdf48d0c7443f30b9..ebd9c05c56a3c7683d0736fc591dd33685184b20 100644 (file)
@@ -231,6 +231,7 @@ function get_netmask(s, use_cfgvalue) {
 function has_peerdns(proto) {
        switch (proto) {
        case 'dhcp':
+       case 'dhcpv6':
        case 'qmi':
        case 'ppp':
        case 'pppoe':