From 19e1107c9dc267c763e3792254f663cee779f296 Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Mon, 20 Apr 2026 21:34:27 +0300 Subject: [PATCH] feat: new protocol QR --- inc/QrUtil.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/QrUtil.php b/inc/QrUtil.php index 5515000..5ebc5e6 100644 --- a/inc/QrUtil.php +++ b/inc/QrUtil.php @@ -533,6 +533,8 @@ class QrUtil 'I5' => (string) ($params['I5'] ?? ''), 'S3' => (string) ($params['S3'] ?? ''), 'S4' => (string) ($params['S4'] ?? ''), + 'protocol_version' => '2', + 'subnet_address' => (string) ($address ? (preg_match('/^(\d+\.\d+\.\d+)\.\d+/', $address, $m) ? $m[1] . '.0' : '10.8.1.0') : '10.8.1.0'), ] : []), 'container' => $protocolSlug === 'awg2' ? 'amnezia-awg2' : 'amnezia-awg', ],