Skip to content

Commit

Permalink
Merge pull request #6 from namaenonaimumei/PR_fix-privileges
Browse files Browse the repository at this point in the history
TUNアダプターの構築におけるopenvpnエラーについて
  • Loading branch information
Hayao0819 authored Jul 20, 2022
2 parents e21d054 + 71cdb2f commit f61a623
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nm-vpngate
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,11 @@ _connect_vpn_nm(){
_connect_vpn_openvpn(){
local _ovpn_file="$CONFIG_DIR/$PROFILE_NAME.ovpn"
test -e "$_ovpn_file" || { _error "$PROFILE_NAME was not found."; return 1; }
_run openvpn --config "$_ovpn_file"
if [[ "${MODE}" = "GUI-"* ]]; then
_run pkexec openvpn --config "$_ovpn_file"
else
_run sudo openvpn --config "$_ovpn_file"
fi
}

_connect_vpn(){
Expand Down

0 comments on commit f61a623

Please sign in to comment.