eventure / hide.client.linux

Hide.me CLI VPN client for Linux
https://hide.me
GNU General Public License v2.0
90 stars 35 forks source link

Add the possibility to pass options to the systemd service file #10

Closed ljrk0 closed 3 years ago

ljrk0 commented 3 years ago

Systemd services can be configured to pick up options automatically from so-called environment files.

tcohar commented 3 years ago

Hi,

thanks, this is a cool addition. However, it would be even better if CLI supported parsing ENV variables on it's own and in addition to command line parameters. I'll look into that.

ljrk0 commented 3 years ago

That'd be nice, but I don't feel comfortable enough in Go implementing this.

Further there may be problems passing environment variables with sudo hide.me, since sudo doesn't inherit all variables. Also the environment is controlled by an unprivileged user, so maybe one would need to safeguard against that to prevent abuse.