mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
commit
fc3691406e
3 changed files with 4 additions and 2 deletions
0
Default.txt
Executable file → Normal file
0
Default.txt
Executable file → Normal file
|
@ -141,8 +141,8 @@ if [ -z "${NAME}" ]; then
|
|||
read -r NAME
|
||||
fi
|
||||
|
||||
if [[ "${NAME}" =~ [^a-zA-Z0-9] ]]; then
|
||||
echo "Name can only contain alphanumeric characters."
|
||||
if [[ "${NAME}" =~ [^a-zA-Z0-9\-] ]]; then
|
||||
echo "Name can only contain alphanumeric characters and dashes (-)."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
2
server_config.txt
Executable file → Normal file
2
server_config.txt
Executable file → Normal file
|
@ -10,6 +10,8 @@ server 10.8.0.0 255.255.255.0
|
|||
# Set your primary domain name server address for clients
|
||||
push "dhcp-option DNS 8.8.8.8"
|
||||
push "dhcp-option DNS 8.8.4.4"
|
||||
# Prevent DNS leaks on Windows
|
||||
push "block-outside-dns"
|
||||
# Override the Client default gateway by using 0.0.0.0/1 and
|
||||
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
|
||||
# overriding but not wiping out the original default gateway.
|
||||
|
|
Loading…
Reference in a new issue