Skip to content

Commit

Permalink
Fix dict error
Browse files Browse the repository at this point in the history
Due to different between py2 and py3, dict.values() no longer return a list.
This should be caught 3 months ago!
  • Loading branch information
Dragon2fly authored Jul 12, 2020
1 parent e09a838 commit e396624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vpnproxy_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__author__ = "duc_tin"
__copyright__ = "Copyright 2015+, duc_tin"
__license__ = "GPLv2"
__version__ = "1.35"
__version__ = "1.36"
__maintainer__ = "duc_tin"
__email__ = "nguyenbaduc.tin@gmail.com"

Expand Down Expand Up @@ -482,10 +482,10 @@ def signal_term_handler(signal, frame):

mirrors = ["http://www.vpngate.net"] + cfg.mirror['url'].split(', ')
use_proxy, proxy, port, ip = cfg.proxy.values()
sort_by = cfg.sort.values()[0]
sort_by = cfg.sort['key']
s_country, s_port, s_score = cfg.filter.values()
dns_fix, dns = cfg.dns.values()
verbose = cfg.openvpn.values()[0]
verbose = cfg.openvpn['verbose']

ranked, vpn_list = refresh_data()
elif re.findall(r'^\d+$', user_input.strip()) and int(user_input) < server_sum:
Expand Down

0 comments on commit e396624

Please sign in to comment.