Keep VPN diagnostics from restarting runtime by default

This commit is contained in:
2026-05-15 13:07:15 +03:00
parent d8c1632631
commit e4a3e08876
2 changed files with 3 additions and 3 deletions
@@ -481,7 +481,7 @@ public class RapDiagnosticService extends Service {
} else {
result = "unknown command " + type;
}
if (isRecoverableVPNProbe(type) && looksLikeVPNStall(result)) {
if (isRecoverableVPNProbe(type) && params.optBoolean("allow_recovery", false) && looksLikeVPNStall(result)) {
String firstResult = result;
String recovery = controlledRestartVPNRuntime(client, clusterId);
String ready = waitForVPNRuntimeReady(RECOVERY_RUNTIME_READY_TIMEOUT_MS);