Skip to content

Commit

Permalink
style: format with shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Apr 30, 2020
1 parent 9096af1 commit 5e2e67f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ prefetch: yes' >>/etc/unbound/unbound.conf
qname-minimisation: yes
prefetch: yes' >/etc/unbound/unbound.conf
fi

# IPv6 DNS for all OS
if [[ "$IPV6_SUPPORT" == 'y' ]]; then
if [[ $IPV6_SUPPORT == 'y' ]]; then
echo 'interface: fd42:42:42:42::1
access-control: fd42:42:42:42::/112 allow' >> /etc/unbound/unbound.conf
access-control: fd42:42:42:42::/112 allow' >>/etc/unbound/unbound.conf
fi

if [[ ! $OS =~ (fedora|centos|amzn) ]]; then
Expand Down Expand Up @@ -197,10 +197,10 @@ private-address: 169.254.0.0/16
private-address: fd00::/8
private-address: fe80::/10
private-address: 127.0.0.0/8
private-address: ::ffff:0:0/96' > /etc/unbound/openvpn.conf
if [[ "$IPV6_SUPPORT" == 'y' ]]; then
private-address: ::ffff:0:0/96' >/etc/unbound/openvpn.conf
if [[ $IPV6_SUPPORT == 'y' ]]; then
echo 'interface: fd42:42:42:42::1
access-control: fd42:42:42:42::/112 allow' >> /etc/unbound/openvpn.conf
access-control: fd42:42:42:42::/112 allow' >>/etc/unbound/openvpn.conf
fi
fi

Expand Down Expand Up @@ -796,11 +796,11 @@ ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
fi
done
;;
2) # Self-hosted DNS resolver (Unbound)
echo 'push "dhcp-option DNS 10.8.0.1"' >> /etc/openvpn/server.conf
if [[ "$IPV6_SUPPORT" == 'y' ]]; then
echo 'push "dhcp-option DNS fd42:42:42:42::1"' >> /etc/openvpn/server.conf
fi
2) # Self-hosted DNS resolver (Unbound)
echo 'push "dhcp-option DNS 10.8.0.1"' >>/etc/openvpn/server.conf
if [[ $IPV6_SUPPORT == 'y' ]]; then
echo 'push "dhcp-option DNS fd42:42:42:42::1"' >>/etc/openvpn/server.conf
fi
;;
3) # Cloudflare
echo 'push "dhcp-option DNS 1.0.0.1"' >>/etc/openvpn/server.conf
Expand Down

0 comments on commit 5e2e67f

Please sign in to comment.