diff --git a/inc/QrUtil.php b/inc/QrUtil.php index 293dc99..a822240 100644 --- a/inc/QrUtil.php +++ b/inc/QrUtil.php @@ -462,7 +462,8 @@ class QrUtil [ 'container' => 'amnezia-xray', 'xray' => [ - 'last_config' => json_encode($clientCfg, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), + // X-Ray config must be wrapped in a "config" field inside the last_config JSON + 'last_config' => json_encode(['config' => json_encode($clientCfg, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT)], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'port' => (string) $port, 'transport_proto' => 'tcp' ]