From 0268e26c8502977d530be3fb6ec627e538f1ae7d Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Sat, 24 Jan 2026 14:28:53 +0300 Subject: [PATCH] fix(client): Propagate show_text_content setting from protocol to client view --- public/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/index.php b/public/index.php index b67517a..f7e27f3 100644 --- a/public/index.php +++ b/public/index.php @@ -1124,6 +1124,10 @@ Router::get('/clients/{id}', function ($params) { $stmt->execute([$serverData['install_protocol'] ?? '']); $protocol = $stmt->fetch(); } + + if ($protocol) { + $clientData['show_text_content'] = !empty($protocol['show_text_content']); + } if ($protocol && ($protocol['output_template'] ?? '') !== '') { $slug = $protocol['slug'] ?? ''; $isWireguard = in_array($slug, ['amnezia-wg-advanced', 'wireguard-standard', 'amnezia-wg'], true);