after updating to 4.0.4 from 4.0.2, I can't create a peer anymore:
root@WG:~# tail -f WGDashboard/src/log/error_2024_10_27_10_53_25.log
[2024-10-27 10:53:25 +0330] [9188] [INFO] Starting gunicorn 23.0.0
[2024-10-27 10:53:25 +0330] [9188] [INFO] Listening at: http://127.0.0.1:10086 (9188)
[2024-10-27 10:53:25 +0330] [9188] [INFO] Using worker: gthread
[2024-10-27 10:53:25 +0330] [9190] [INFO] Booting worker with pid: 9190
[WGDashboard] Background Thread #1 Started
[WGDashboard] Background Thread #2 Started
[2024-10-27 10:54:05,311] ERROR in app: Exception on /api/getAvailableIPs/wg0 [GET]
Traceback (most recent call last):
File "/root/WGDashboard/src/venv/lib/python3.10/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
File "/root/WGDashboard/src/venv/lib/python3.10/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/root/WGDashboard/src/venv/lib/python3.10/site-packages/flask_cors/extension.py", line 178, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/root/WGDashboard/src/venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/root/WGDashboard/src/venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/root/WGDashboard/src/dashboard.py", line 1904, in API_getAvailableIPs
status, ips = _getWireguardConfigurationAvailableIP(configName)
File "/root/WGDashboard/src/dashboard.py", line 1391, in _getWireguardConfigurationAvailableIP
existedAddress.append(ipaddress.ip_address(a.replace(" ", "")))
File "/usr/lib/python3.10/ipaddress.py", line 54, in ip_address
raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: 'N' does not appear to be an IPv4 or IPv6 address
after updating to 4.0.4 from 4.0.2, I can't create a peer anymore: