diff --git a/README.md b/README.md index 7e3429e..66ed3ff 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The goal is to run Wg Gen Web in a container and WireGuard on host system. ## Features * Self-hosted and web based - * Automatically select IP from the netowrk pool assigned to client + * Automatically select IP from the network pool assigned to client * QR-Code for convenient mobile client configuration * Sent email to client with QR-code and client config * Enable / Disable client diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index 305e695..351b937 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -609,7 +609,7 @@ getConfigFileName(client){ let name = client.name.split(' ').join('-'); // replace special chars - name = name.replace(/[^a-zA-Z0-9_-]+/g, ''); + name = name.replace(/[^a-zA-Z\d_-]+/g, ''); return name + '.conf'; }, }