Merge pull request #699 from abrattic/master

Specifying DNS Server for client config in automatic script.
This commit is contained in:
yubiuser
2022-05-02 21:17:32 +02:00
committed by GitHub
+1
View File
@@ -29,6 +29,7 @@ For each new client, the following steps must be taken. For the sake of simplici
echo "[Interface]" > "${name}.conf"
echo "Address = $ipv4/32, $ipv6/128" >> "${name}.conf"
echo "DNS = ${serv4}, ${serv6}" >> "${name}.conf" #Specifying DNS Server
echo "PrivateKey = $(cat "${name}.key")" >> "${name}.conf"
echo "" >> "${name}.conf"
echo "[Peer]" >> "${name}.conf"