fixing bug that prevented adding two dns servers separated by a comma

This commit is contained in:
Andrew Davidson 2019-08-02 09:40:33 -04:00
parent c7b8dfb8ed
commit a10810b85d
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -41,7 +41,7 @@ rm -f /var/run/starter.charon.pid
# Allow DNS changes https://github.com/amdavidson/vpn-server/issues/5
if [ -n $DNS ]; then
sed -i "s/dns = .*/dns = $DNS/" /etc/strongswan.conf
sed -i "s/dns = .*/dns = ${DNS}/" /etc/strongswan.conf
fi
service ndppd start