mirror of https://git.openwrt.org/project/luci.git
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:
parent
a288354e78
commit
54192d3b36
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue