Skip to content

Commit fa249cb

Browse files
author
Luka Gulin
committed
Allow underscores in peer names
1 parent 7259a9e commit fa249cb

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎api/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"start": "node ./dist/server.js",
1111
"lint": "eslint . --ext .ts"
1212
},
13-
"author": "lg@shardlabs.io",
1413
"license": "MIT",
1514
"dependencies": {
1615
"cors": "^2.8.5",

‎dappnode_package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.1",
44
"description": "Wireguard for DAppNode",
55
"type": "dncore",
6-
"author": "Shardlabs",
6+
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
77
"categories": ["Developer tools"],
88
"architectures": ["linux/amd64", "linux/arm64"],
99
"links": {

‎root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $(cat /config/templates/server.conf)
3535

3636
DUDE"
3737
for i in "${PEERS_ARRAY[@]}"; do
38-
if [[ ! "${i}" =~ ^[[:alnum:]]+$ ]]; then
38+
if [[ ! "${i}" =~ ^[[:alnum:]_]+$ ]]; then
3939
echo "**** Peer ${i} contains non-alphanumeric characters and thus will be skipped. No config for peer ${i} will be generated. ****"
4040
else
4141
if [[ "${i}" =~ ^[0-9]+$ ]]; then

0 commit comments

Comments
 (0)