donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.63k stars 248 forks source link

[KNOWN BUG] wg-quick will reformat comma separated value #497

Open donaldzou opened 6 days ago

donaldzou commented 6 days ago

wg-quick save wgX will reformat the configuration file in a weird way.

demo.conf

[Interface]
PrivateKey = abcdE
Address = 10.0.0.1/24,2001:db8::/64
SaveConfig = true  <== I need this to edit configuration on the fly

...  

once I run wg-quick save demo, then the configuration will get reformatted into

[Interface]
Address = 10.20.21.0/24
Address = 2001:db8::/64

...

and currently WGDashboard is not handling multiple same key configuration. Fixing it in fix-wg-quick-duplicate-keys

NOXCIS commented 5 days ago

I think one of the amneziawg patches i did over on wiregate resloved this, will have to retrace my steps to find it, will post later.