donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python w/ Flask
Apache License 2.0
1.22k stars 176 forks source link

Creating new user resets configuration address to /32 #236

Open egorshulga opened 8 months ago

egorshulga commented 8 months ago

Describe The Problem A clear and concise description of what the bug is.

I had this configuration:

[Interface]
Address = 10.100.0.1/24
SaveConfig = true
PostUp = ...
PostDown = ...
ListenPort = 51000

When I create a new user via the dashboard, then the Address in the configuration is reset to 10.100.0.1/32. In its turn, it breaks the discovery of available IP addresses for new users that I create afterwards.