Skip to content

Commit

Permalink
fix: VPN mode selection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ab77 committed Sep 27, 2022
1 parent b3d0bcb commit 3277a92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unzoner/src/vpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ def connect_node(family=AF):
############
# VPN mode #
############
if DEVICE_TYPE in [3, 5] or (
VPN_PROVIDER
if DEVICE_TYPE == 5 or (
DEVICE_TYPE == 3
and VPN_PROVIDER
and VPN_LOCATION_GROUP
and VPN_LOCATION
and VPN_USERNAME
Expand Down

0 comments on commit 3277a92

Please sign in to comment.