From 59a6f062d29ee7a400e9cb0477e0e55eb674208a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 14 Mar 2023 23:34:53 +0100 Subject: 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 --- .../htdocs/luci-static/resources/protocol/wireguard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/luci-proto-wireguard/htdocs/luci-static/resources') 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) { -- cgit v1.2.3