This commit is contained in:
2026-03-07 22:40:46 +01:00
parent 9566b8c36a
commit 706917ec7c
5 changed files with 18 additions and 5 deletions

View File

@@ -328,7 +328,8 @@ if (isset($_GET['send_active_json'])) {
if (!$host) {
$error = 'Host nicht gefunden.';
} else {
$strictHostKey = getenv('PI_CONTROL_STRICT_HOSTKEY') === '1';
$settings = modules()->settings('pi_control');
$strictHostKey = !empty($settings['terminal_strict_hostkey']) || getenv('PI_CONTROL_STRICT_HOSTKEY') === '1';
[$ok, $sendError] = sendToActiveConsole($host, $commandText, $strictHostKey);
if ($ok) {
$notice = 'Befehl wurde in der bestehenden Konsole ausgeführt.';