luci-app-ddns: Fix multiple IP display bug

Occasionally, a DNS lookup returns multiple IPs, so the best thing to
do isn't to join them together as a unified string, but to separate
them with an HTML <br/>.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2025-04-23 14:03:50 +02:00
parent a288354e78
commit 54192d3b36
No known key found for this signature in database
GPG Key ID: 3FC4A933962871D2
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ const methods = {
}
res[section] = {
ip: ip ? replace(ip, '\n', '') : null,
ip: ip ? replace(trim(ip), '\n', '<br/>') : null,
last_update: lastUpdate !== 0 ? convertedLastUpdate : null,
next_update: nextUpdate || null,
pid: pid || null,