mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
need to init OVPNDNS
This commit is contained in:
parent
3f3ebc48a0
commit
9ca5425c26
1 changed files with 1 additions and 2 deletions
|
@ -524,6 +524,7 @@ confNetwork() {
|
|||
}
|
||||
|
||||
confOVPN() {
|
||||
OVPNDNS="8.8.8.8"
|
||||
IPv4pub=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
||||
$SUDO cp /tmp/pivpnUSR /etc/pivpn/INSTALL_USER
|
||||
|
||||
|
@ -572,8 +573,6 @@ confOVPN() {
|
|||
$SUDO sed -i -e "s/dhcp-option DNS 8.8.8.8/dhcp-option DNS ${OVPNDNS}/g" /etc/openvpn/server.conf
|
||||
fi
|
||||
|
||||
### ask about dns for clients
|
||||
|
||||
$SUDO mkdir /home/$pivpnUser/ovpns
|
||||
$SUDO chmod 0777 -R /home/$pivpnUser/ovpns
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue