diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-03-14 23:34:53 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-03-14 23:36:39 +0100 |
commit | 59a6f062d29ee7a400e9cb0477e0e55eb674208a (patch) | |
tree | eb47bfd1d6acf3f9ffa0a82bc59dd6dd2a1be2f5 /protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | |
parent | c7df6e7ea5e77ef82b16b7157d8ee5977802bd10 (diff) |
luci-proto-wireguard: use ddns lookup_host for peer hints
The `domain` option of a DDNS service entry may contain non-hostname values,
use the `lookup_hostname` option instead.
Fixes: #6289
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | 4 |
1 files changed, 2 insertions, 2 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 1180b202e5..2126403de6 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 @@ -730,8 +730,8 @@ return network.registerProtocol('wireguard', { var hostnames = []; uci.sections('ddns', 'service', function(s) { - if (typeof(s.domain) == 'string' && s.enabled == '1') - hostnames.push(s.domain); + if (typeof(s.lookup_host) == 'string' && s.enabled == '1') + hostnames.push(s.lookup_host); }); uci.sections('system', 'system', function(s) { |