mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-07-06 14:34:21 +02:00
add TCP_NODELAY option
Signed-off-by: Mohammad Shehar Yaar Tausif <sheharyaar48@gmail.com>
This commit is contained in:
parent
4553dd9c21
commit
759d8f08f2
@ -308,6 +308,14 @@ function installQuestions() {
|
||||
;;
|
||||
2)
|
||||
PROTOCOL="tcp"
|
||||
until [[ $TCP_NODELAY =~ (y|n) ]]; do
|
||||
read -rp "Do you want to enable TCP_NODELAY (improves latency)? [y/n]: " -e TCP_NODELAY
|
||||
done
|
||||
if [[ $TCP_NODELAY == "y" ]]; then
|
||||
TCP_NODELAY="tcp-nodelay"
|
||||
else
|
||||
TCP_NODELAY=""
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
echo ""
|
||||
@ -897,7 +905,8 @@ tls-version-min 1.2
|
||||
tls-cipher $CC_CIPHER
|
||||
client-config-dir /etc/openvpn/ccd
|
||||
status /var/log/openvpn/status.log
|
||||
verb 3" >>/etc/openvpn/server.conf
|
||||
verb 3
|
||||
$TCP_NODELAY" >>/etc/openvpn/server.conf
|
||||
|
||||
# Create client-config-dir dir
|
||||
mkdir -p /etc/openvpn/ccd
|
||||
|
Loading…
x
Reference in New Issue
Block a user