hotfix(openvpn): bump hand-window from 10s to 20s

This commit is contained in:
Quentin McGaw
2026-05-08 16:12:13 +00:00
parent 891249849a
commit 445f99d9dc
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ Your credentials might be wrong 🤨
` `
level = levelError level = levelError
case strings.Contains(s, "TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)"): //nolint:lll case strings.Contains(s, "TLS Error: TLS key negotiation failed to occur within 20 seconds (check your network connectivity)"): //nolint:lll
filtered = s + ` filtered = s + `
🚒🚒🚒🚒🚒🚨🚨🚨🚨🚨🚨🚒🚒🚒🚒🚒 🚒🚒🚒🚒🚒🚨🚨🚨🚨🚨🚨🚒🚒🚒🚒🚒
That error usually happens because either: That error usually happens because either:
+2 -2
View File
@@ -52,9 +52,9 @@ func Test_processLogLine(t *testing.T) {
}, },
"TLS key negotiation error": { "TLS key negotiation error": {
s: "TLS Error: TLS key negotiation failed to occur within " + s: "TLS Error: TLS key negotiation failed to occur within " +
"60 seconds (check your network connectivity)", "20 seconds (check your network connectivity)",
filtered: "TLS Error: TLS key negotiation failed to occur within " + filtered: "TLS Error: TLS key negotiation failed to occur within " +
"60 seconds (check your network connectivity)" + ` "20 seconds (check your network connectivity)" + `
🚒🚒🚒🚒🚒🚨🚨🚨🚨🚨🚨🚒🚒🚒🚒🚒 🚒🚒🚒🚒🚒🚨🚨🚨🚨🚨🚨🚒🚒🚒🚒🚒
That error usually happens because either: That error usually happens because either:
+1 -1
View File
@@ -73,7 +73,7 @@ func modifyConfig(lines []string, connection models.Connection,
modified = append(modified, "pull-filter ignore \"auth-token\"") // prevent auth failed loop modified = append(modified, "pull-filter ignore \"auth-token\"") // prevent auth failed loop
modified = append(modified, "auth-retry nointeract") modified = append(modified, "auth-retry nointeract")
modified = append(modified, "suppress-timestamps") modified = append(modified, "suppress-timestamps")
modified = append(modified, "hand-window 10") // default is 60 seconds which is too long modified = append(modified, "hand-window 20") // default is 60 seconds which is too long
if *settings.User != "" { if *settings.User != "" {
modified = append(modified, "auth-user-pass "+openvpn.AuthConf) modified = append(modified, "auth-user-pass "+openvpn.AuthConf)
} }
+1 -1
View File
@@ -62,7 +62,7 @@ func Test_modifyConfig(t *testing.T) {
"pull-filter ignore \"auth-token\"", "pull-filter ignore \"auth-token\"",
"auth-retry nointeract", "auth-retry nointeract",
"suppress-timestamps", "suppress-timestamps",
"hand-window 10", "hand-window 20",
"auth-user-pass /etc/openvpn/auth.conf", "auth-user-pass /etc/openvpn/auth.conf",
"verb 0", "verb 0",
"data-ciphers-fallback cipher", "data-ciphers-fallback cipher",
+1 -1
View File
@@ -62,7 +62,7 @@ func OpenVPNConfig(provider OpenVPNProviderSettings,
lines.add("mute-replay-warnings") // these are often ignored by some VPN providers lines.add("mute-replay-warnings") // these are often ignored by some VPN providers
lines.add("auth-retry", "nointeract") // retry authenticating without interaction lines.add("auth-retry", "nointeract") // retry authenticating without interaction
lines.add("suppress-timestamps") // do not log timestamps, the Gluetun logger takes care of it lines.add("suppress-timestamps") // do not log timestamps, the Gluetun logger takes care of it
lines.add("hand-window", "10") // default is 60 seconds which is too long lines.add("hand-window", "20") // default is 60 seconds which is too long
lines.add("dev", settings.Interface) lines.add("dev", settings.Interface)
lines.add("verb", fmt.Sprint(*settings.Verbosity)) lines.add("verb", fmt.Sprint(*settings.Verbosity))
protocol := connection.Protocol protocol := connection.Protocol