0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

Merge branch 'master' into v2

This commit is contained in:
vx3r
2023-01-31 16:32:51 +01:00
committed by GitHub
9 changed files with 55 additions and 110 deletions

View File

@ -9,7 +9,7 @@
"dependencies": {
"axios": "^0.21.4",
"is-cidr": "^4.0.2",
"moment": "^2.29.1",
"moment": "^2.29.4",
"vue": "^2.6.14",
"vue-axios": "^3.4.0",
"vue-moment": "^4.1.0",

View File

@ -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';
},
}