无需推送路由

This commit is contained in:
Nao_ke 2020-05-11 10:10:28 +08:00 committed by GitHub
parent 201b9c17af
commit 53bbfa77f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,15 +573,14 @@ function installOpenVPN() {
echo "proto ${PROTOCOL}6" >>/etc/openvpn/server.conf
fi
echo 'dev tap
echo "dev tap
user nobody
group $NOGROUP
persist-key
persist-tun
keepalive 10 120
server 10.233.0.0 255.255.0.0
push "route 10.233.0.0 255.255.0.0"
ifconfig-pool-persist ipp.txt' >>/etc/openvpn/server.conf
ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
if [[ $COMPRESSION_ENABLED == "y" ]]; then
echo "compress $COMPRESSION_ALG" >>/etc/openvpn/server.conf