morpheusthewhite / nordpy

A gui application to connect automatically to the recommended NordVPN server
GNU General Public License v3.0
105 stars 16 forks source link

Quick connect does not work with IPsec #34

Closed morpheusthewhite closed 4 years ago

morpheusthewhite commented 4 years ago

Quick connect does not work if the last protocol used was IPsec

Traceback (most recent call last):
  File "/usr/local/bin/nordpy", line 62, in <module>
    main()
  File "/usr/local/bin/nordpy", line 35, in main
    quick_connect(parsed_args.wait_connection)
  File "/home/francesco/GitHub/nordpy/bin/command_line_util.py", line 34, in quick_connect
    start_openvpn(server, protocol)
  File "/home/francesco/GitHub/nordpy/bin/vpn_util/openvpn.py", line 41, in start_openvpn
    killswitch_up(server, protocol)
  File "/home/francesco/GitHub/nordpy/bin/vpn_util/killswitch.py", line 82, in killswitch_up
    (ip, port) = read_remote_ip_port(get_path_to_conf(server_name, protocol))
  File "/home/francesco/GitHub/nordpy/bin/vpn_util/killswitch.py", line 21, in read_remote_ip_port
    with open(ovpn_filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/francesco/GitHub/nordpy/ovpn_Ikev2/IPsec/us4645.nordvpn.com.Ikev2/IPsec.ovpn'