Skip to content

Commit 0698aac

Browse files
HumanPrinterOscar Brouwer
authored and
Oscar Brouwer
committed
Added options for dhcp-option, comp-lzo and block-outside-dns in ovpn_getclient based on settings in ovpn_env.sh
1 parent 5f68159 commit 0698aac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/ovpn_getclient

+10
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,21 @@ tls-auth ta.key 1
9999

100100
if [ "$OVPN_COMP_LZO" == "1" ]; then
101101
echo "comp-lzo"
102+
else
103+
echo "comp-lzo no"
102104
fi
103105

104106
if [ -n "$OVPN_OTP_AUTH" ]; then
105107
echo reneg-sec 0
106108
fi
109+
110+
if [ "$OVPN_DISABLE_PUSH_BLOCK_DNS" == "0" ];then
111+
echo "block-outside-dns"
112+
fi
113+
114+
for dnsserver in ${!OVPN_DNS_SERVERS[@]}; do
115+
echo dhcp-option DNS ${OVPN_DNS_SERVERS[${dnsserver}]}
116+
done
107117
}
108118

109119
dir="$OPENVPN/clients/$cn"

0 commit comments

Comments
 (0)