luci-app-wireguard: trivial fix to separate a peer's multiple IPs 6006/head
authorPaul Dee <itsascambutmailmeanyway@gmail.com>
Wed, 5 Oct 2022 13:18:01 +0000 (15:18 +0200)
committerPaul Dee <itsascambutmailmeanyway@gmail.com>
Wed, 5 Oct 2022 13:22:19 +0000 (15:22 +0200)
Attempts to address issue #6003

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js

index b9c756de9814c5a3a13add3d181c496d27f6cd66..d4cb5902b6d795e6b15daca791934174dc8996a9 100644 (file)
@@ -115,7 +115,7 @@ function parsePeerData(peer) {
                ['endpoint', _('Endpoint'),
                        peer.endpoint == '(none)' ? null : peer.endpoint],
                ['allowed_ips', _('Allowed IPs'),
-                       peer.allowed_ips.length == 0 ? null : peer.allowed_ips.join('\n')],
+                       peer.allowed_ips.length == 0 ? null : peer.allowed_ips.join('')],
                ['persistent_keepalive', _('Persistent Keepalive'),
                        peer.persistent_keepalive == 'off' ? null : peer.persistent_keepalive + 's'],
                ['latest_handshake', _('Latest Handshake'),