diff --git a/model/client.go b/model/client.go index 07711d7..695768b 100644 --- a/model/client.go +++ b/model/client.go @@ -16,7 +16,7 @@ type Client struct { PresharedKey string `json:"presharedKey"` AllowedIPs []string `json:"allowedIPs"` Address []string `json:"address"` - Tags []string `json:"tags"` + Tags []string `json:"tags"` PrivateKey string `json:"privateKey"` PublicKey string `json:"publicKey"` CreatedBy string `json:"createdBy"` diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index 4d34028..b06e238 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -66,30 +66,39 @@ @@ -592,7 +601,7 @@ const url = window.URL.createObjectURL(new Blob([config])) const link = document.createElement('a') link.href = url - link.setAttribute('download', 'wg0.conf') //or any other extension + link.setAttribute('download', client.name.split(' ').join('-') + '.conf') //or any other extension document.body.appendChild(link) link.click() },