mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-01 16:35:37 +03:00
add private subnets
This commit is contained in:
parent
c205a04443
commit
453e9fcf5d
5 changed files with 63 additions and 15 deletions
|
@ -18,6 +18,12 @@ function renderClientList(data) {
|
|||
allowedIpsHtml += `<small class="badge badge-secondary">${obj}</small> `;
|
||||
})
|
||||
|
||||
// render client private subnets
|
||||
let privateSubnetsHtml = "";
|
||||
$.each(obj.Client.private_subnets, function(index, obj) {
|
||||
privateSubnetsHtml += `<small class="badge badge-secondary">${obj}</small> `;
|
||||
})
|
||||
|
||||
// render client html content
|
||||
let html = `<div class="col-sm-6" id="client_${obj.Client.id}">
|
||||
<div class="info-box">
|
||||
|
@ -50,6 +56,8 @@ function renderClientList(data) {
|
|||
+ allocatedIpsHtml
|
||||
+ `<span class="info-box-text"><strong>Allowed IPs</strong></span>`
|
||||
+ allowedIpsHtml
|
||||
+ `<span class="info-box-text"><strong>Private Subnets</strong></span>`
|
||||
+ privateSubnetsHtml
|
||||
+`</div>
|
||||
</div>
|
||||
</div>`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue