Skip to content

Commit

Permalink
Merge pull request #85 from mxmxcz/master
Browse files Browse the repository at this point in the history
Fix false positives of openvpn process detection
  • Loading branch information
Rafficer authored Jan 11, 2020
2 parents 80a4c6d + 61f04db commit 3d3ccbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protonvpn_cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_default_nic():

def is_connected():
"""Check if a VPN connection already exists."""
ovpn_processes = subprocess.run(["pgrep", "openvpn"],
ovpn_processes = subprocess.run(["pgrep", "--exact", "openvpn"],
stdout=subprocess.PIPE)
ovpn_processes = ovpn_processes.stdout.decode("utf-8").split()

Expand Down

0 comments on commit 3d3ccbf

Please sign in to comment.