diff options
Diffstat (limited to 'protocols/luci-proto-wireguard')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js index 068cc7b0c1..1180b202e5 100644 --- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js +++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js @@ -361,10 +361,8 @@ return network.registerProtocol('wireguard', { s.getOption('listen_port').getUIElement(s.section).setValue(config.interface_listenport || ''); s.getOption('addresses').getUIElement(s.section).setValue(config.interface_address); - if (config.interface_dns) { - s.getOption('peerdns').getUIElement(s.section).setValue('0'); + if (config.interface_dns) s.getOption('dns').getUIElement(s.section).setValue(config.interface_dns); - } for (var i = 0; i < config.peers.length; i++) { var pconf = config.peers[i]; |