introduce WG_DEFAULT_ADDRESS_RANGE (CIDR notation)

This PR allows the use of Address Ranges using the CIDR notation.

To make it backward compatible, i introduced a new env variable WG_DEFAULT_ADDRESS_RANGE (defaults to the previous default of 24).

This allows the usage of smaller subnets (or possibly larger; but i didn't test that due to restrictions on my network). Client IPs will be calculated with correct IP addresses instead of making assumptions of the address space.
This commit is contained in:
Thomas Willems 2024-01-29 12:51:44 +01:00 committed by pheiduck
parent 3a4564a508
commit 577af9947d
7 changed files with 33 additions and 8 deletions

View file

@ -17,6 +17,7 @@
"debug": "^4.3.4",
"express": "^4.18.3",
"express-session": "^1.18.0",
"ip": "^1.1.8",
"qrcode": "^1.5.3",
"uuid": "^9.0.1"
},