naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/
MIT License
673 stars 33 forks source link

dsnet up fails because default config doesn't populate the ReportFile field #85

Closed axelsimon closed 1 year ago

axelsimon commented 1 year ago

Full error: Key: 'DsnetConfig.ReportFile' Error:Field validation for 'ReportFile' failed on the 'required' tag - failed to load configuration file this is with dsnet v.0.7.2.

I'm pretty sure that field used to be filled with a default. In any case, simply making sure the config has something like:

    "ReportFile": "/tmp/dsnetreport.json",

is enough to stop dsnet from complaining and to issue dsnet up successfully.

naggie commented 1 year ago

Thanks @axelsimon -- fixed in master. I'll cut a release soon