luci-app-wireguard: trivial fix to separate a peer's multiple IPs

Attempts to address issue #6003

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
This commit is contained in:
Paul Dee 2022-10-05 15:18:01 +02:00
parent ca9a6d3c7a
commit a53fc7711c

View 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'),