Skip to content

Commit cbf8e30

Browse files
updated readme, installation script and corrected error stream reading in ipsec_exists()
1 parent 08110b4 commit cbf8e30

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ A python application with gui to connect automatically to the recommended NordVP
33

44
All server types on NordVPN site are available to be selected in the window.
55

6+
<b> NOTE </b>: ikev2 support is tested on Debian, Arch and derivatives (if something's not right button won't show up)
67
### Installation and requirements
78

89
For <b>Debian/Ubuntu</b>, <b>Fedora/Red Hat</b> and <b>Arch Linux</b> users:

bin/vpn_util/ikev2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def ipsec_exists():
4444
Verifies if ipsec is existing in the os
4545
:return: a boolean: True if ipsec exists, false otherwise
4646
"""
47-
(_, err) = Popen(["sudo", "ipsec", "--version"], stdout=PIPE, stderr=PIPE).communicate()
47+
(_, err) = Popen(["sudo", "ipsec", "--version"], stdout=PIPE, stderr=PIPE, universal_newlines=True).communicate()
4848
if "not found" in err:
4949
return False
5050

install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if ! [ -z `which apt-get 2> /dev/null` ]; # Debian
88
libcharon-extra-plugins
99
fi
1010
if ! [ -z `which dnf 2> /dev/null` ]; # Fedora
11-
then sudo dnf install python3 python3-tkinter python3-requests openvpn wget unzip strongswan strongswan-charon-nm
11+
then sudo dnf install python3 python3-tkinter python3-requests openvpn wget unzip
12+
# sudo dnf install strongswan strongswan-charon-nm libreswan ldns unbound-libs
1213
fi
1314
if ! [ -z `which pacman 2> /dev/null` ]; # Arch Linux
1415
then sudo pacman -Sy python3 tk python-requests openvpn wget unzip strongswan

0 commit comments

Comments
 (0)