mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-11-23 02:42:07 +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
|
## Features
|
||||||
|
|
||||||
* Self-hosted and web based
|
* 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
|
* QR-Code for convenient mobile client configuration
|
||||||
* Sent email to client with QR-code and client config
|
* Sent email to client with QR-code and client config
|
||||||
* Enable / Disable client
|
* Enable / Disable client
|
||||||
|
@ -609,7 +609,7 @@
|
|||||||
getConfigFileName(client){
|
getConfigFileName(client){
|
||||||
let name = client.name.split(' ').join('-');
|
let name = client.name.split(' ').join('-');
|
||||||
// replace special chars
|
// replace special chars
|
||||||
name = name.replace(/[^a-zA-Z0-9_-]+/g, '');
|
name = name.replace(/[^a-zA-Z\d_-]+/g, '');
|
||||||
return name + '.conf';
|
return name + '.conf';
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user