YunoHost-Apps / wireguard_client_ynh

WireGuard Client configuration app, for YunoHost
MIT License
4 stars 1 forks source link

Config fails to load if Interface name does no match config file name #6

Open Gredin67 opened 8 months ago

Gredin67 commented 8 months ago

It is not clear what to type in List of VPN clients to handle.

I added an interface vpn_blabla, then uploaded the config file vpn.conf, vpn fails to start : wg-quick: The config file must be a valid interface name, followed by .conf

Then I added a new interface vpn and removed the interface vpn_blabla. After restart I get:

vpn_blabla | not running | enabled | x.y.z.u:v
vpn | running | enabled | x.y.z.w:v

So interface name and config file name seem to be coupled.

If possible, the UX would be better if we would just ask for a config file to load, and the corresponding interface would be created accordingly. So basically, a list of config files with:

tituspijean commented 3 months ago

The configuration panel should automatically rename the file to $interface_name.conf. Can you confirm it still happens?

It is not possible to do it the other way around with the config panels, as far as I know.