mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-11-22 02:31:57 +01:00
Fix Typo and Minor Code Smell
This commit is contained in:
parent
7031d2dbb7
commit
62b824b69c
@ -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
|
||||
|
@ -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';
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user