Skip to content

Commit a089fbf

Browse files
committed
Revert iptables check
1 parent 4aec25e commit a089fbf

File tree

1 file changed

+0
-16
lines changed
  • fs/etc/services.d/nordvpn

1 file changed

+0
-16
lines changed

fs/etc/services.d/nordvpn/run

-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
#!/bin/bash
22

3-
legacy_supported=$(lsmod | grep ip_tables >/dev/null 2>&1 && echo yes || echo no)
4-
nft_supported=$(lsmod | grep nf_tables >/dev/null 2>&1 && echo yes || echo no)
5-
if [ x$IPTABLES = xlegacy ] ; then
6-
if [ x$legacy_supported = xyes ] ; then
7-
update-alternatives --set iptables /usr/sbin/iptables-legacy
8-
else
9-
update-alternatives --set iptables /usr/sbin/iptables-nft
10-
fi
11-
else
12-
if [ x$nft_supported = xyes ] ; then
13-
update-alternatives --set iptables /usr/sbin/iptables-nft
14-
else
15-
update-alternatives --set iptables /usr/sbin/iptables-legacy
16-
fi
17-
fi
18-
193
if [[ ! -d /run/nordvpn ]]; then
204
mkdir -m 0770 /run/nordvpn
215
fi

0 commit comments

Comments
 (0)