MathNodes / meile-gui

Meile dVPN GUI for Linux, OS X, and Windows - Powered by the Sentinel Network
https://meile.app
GNU General Public License v3.0
34 stars 6 forks source link

OS X: wg-quick requires root access #2

Closed MathNodes closed 2 years ago

MathNodes commented 2 years ago

Because of permissions in OS X build, in order to connect and use wireguard in OS X, sudo/root permissions is needed. This presented an issue in the pexpect statement of cli/wallet.py/connect.

Resolution: Present a dialog window for OS X users that require them to enter their username password. This password will not be stored for security reasons and the user will be prompted each time. Once saved in a variable pass it in a sendline() during pexpect of sentinelcli.