Skip to content

Commit

Permalink
move name servers above iptable-init
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jun 30, 2024
1 parent 79d7a18 commit 403dcc2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build/root/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,14 @@ if [[ "${VPN_ENABLED}" == "yes" ]]; then
fi
export NAME_SERVERS=$(echo "${NAME_SERVERS}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
if [[ ! -z "${NAME_SERVERS}" ]]; then
echo "[info] NAME_SERVERS defined as '${NAME_SERVERS}'" | ts '%Y-%m-%d %H:%M:%.S'
else
echo "[warn] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to name servers defined in readme.md" | ts '%Y-%m-%d %H:%M:%.S'
export NAME_SERVERS="84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1"
fi
# resolve vpn endpoints, drop all, allow vpn endpoints, if client pia then also allow pia api and pia website
source /root/iptable-init.sh
Expand Down Expand Up @@ -385,14 +393,6 @@ if [[ "${VPN_ENABLED}" == "yes" ]]; then
echo "[crit] LAN_NETWORK not defined (via -e LAN_NETWORK), exiting..." | ts '%Y-%m-%d %H:%M:%.S' && exit 1
fi
export NAME_SERVERS=$(echo "${NAME_SERVERS}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
if [[ ! -z "${NAME_SERVERS}" ]]; then
echo "[info] NAME_SERVERS defined as '${NAME_SERVERS}'" | ts '%Y-%m-%d %H:%M:%.S'
else
echo "[warn] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to name servers defined in readme.md" | ts '%Y-%m-%d %H:%M:%.S'
export NAME_SERVERS="84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1"
fi
if [[ "${VPN_PROV}" != "airvpn" ]]; then
export VPN_USER=$(echo "${VPN_USER}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
if [[ ! -z "${VPN_USER}" ]]; then
Expand Down

0 comments on commit 403dcc2

Please sign in to comment.