diff --git a/openvpn-install.sh b/openvpn-install.sh index 49adb4a..cc4715f 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -689,6 +689,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service echo "proto udp" >> /etc/openvpn/server.conf elif [[ "$PROTOCOL" = '2' ]]; then echo "proto tcp" >> /etc/openvpn/server.conf + echo "socket-flags TCP_NODELAY" >> /etc/openvpn/server.conf fi echo "dev tun user nobody @@ -882,6 +883,7 @@ verb 3" >> /etc/openvpn/server.conf echo "proto udp" >> /etc/openvpn/client-template.txt elif [[ "$PROTOCOL" = '2' ]]; then echo "proto tcp-client" >> /etc/openvpn/client-template.txt + echo "socket-flags TCP_NODELAY" >> /etc/openvpn/client-template.txt fi echo "remote $IP $PORT dev tun