From c17b351efbbfe95010f9657791b342befc54c9dc Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Sat, 31 Jul 2021 14:02:02 +0000 Subject: [PATCH] Fix: cyberghost: explicit-exit-notify only for UDP --- internal/provider/cyberghost/openvpnconf.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/provider/cyberghost/openvpnconf.go b/internal/provider/cyberghost/openvpnconf.go index 5bb5ac93..d81df8e6 100644 --- a/internal/provider/cyberghost/openvpnconf.go +++ b/internal/provider/cyberghost/openvpnconf.go @@ -35,7 +35,6 @@ func (c *Cyberghost) BuildConf(connection models.OpenVPNConnection, // Cyberghost specific // "redirect-gateway def1", "ncp-disable", - "explicit-exit-notify 2", "script-security 2", "route-delay 5", @@ -56,6 +55,10 @@ func (c *Cyberghost) BuildConf(connection models.OpenVPNConnection, lines = append(lines, utils.CipherLines(settings.Cipher, settings.Version)...) + if connection.Protocol == constants.UDP { + lines = append(lines, "explicit-exit-notify") + } + if strings.HasSuffix(settings.Cipher, "-gcm") { lines = append(lines, "ncp-ciphers AES-256-GCM:AES-256-CBC:AES-128-GCM") }