dsds
This commit is contained in:
@@ -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.';
|
||||
|
||||
@@ -77,5 +77,7 @@ echo json_encode([
|
||||
'password' => (string)($host['password'] ?? ''),
|
||||
],
|
||||
'command' => $commandText,
|
||||
'strict_hostkey' => !empty($settings['terminal_strict_hostkey']),
|
||||
'tmux_session' => (string)($settings['terminal_tmux_session'] ?? ''),
|
||||
]);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user