From 9bb9f2561bd91e349e05c1c7ec629466fa72bdb9 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 21 Jun 2026 22:06:42 +0200 Subject: [PATCH] fix(wg): peer QR is now scannable on a phone (v0.9.42) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The show-once peer config QR rendered at 176px (~2.7px per module) with anti-aliasing on. A WireGuard config QR is dense (~57 modules), so a phone camera misread it and the WireGuard app rejected the result as "keine gültige WireGuard-Konfiguration". Render it large (up to ~300px) on a white framed quiet zone with shape-rendering:crispEdges, so modules stay sharp and ~4.6px each. The Download button (.conf import on a PC) remains as the alternative. Verified: old-vs-new render comparison (2.7 → 4.6 px/module, crisp modules); Tailwind compiles the arbitrary shape-rendering property; /wireguard loads 200 with no console errors. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 10 +++++++++- config/clusev.php | 2 +- resources/views/livewire/wireguard/index.blade.php | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ca5376..a12a008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,15 @@ getaggte Releases (Kanal `stable`, optional `beta`) — niemals Entwicklungs-Bui _Keine offenen Änderungen — der nächste Stand wird hier gesammelt und als `vX.Y.Z` getaggt._ -## [0.9.41] - 2026-06-21 +## [0.9.42] - 2026-06-21 + +### Behoben +- **Peer-QR-Code ließ sich am Handy nicht scannen („keine gültige WireGuard-Konfiguration").** Der + QR einer WireGuard-Client-Config ist dicht (~57 Module); er wurde im Einmal-Dialog mit nur 176 px + angezeigt (~2,7 px pro Modul) und kantengeglättet — zu klein/unscharf, sodass die Handy-Kamera ihn + fehlerhaft las. Der QR wird jetzt deutlich größer (bis ~300 px) auf weißem Rahmen mit Ruhezone und + pixelgenau (`shape-rendering: crispEdges`) gerendert. Alternativ bleibt der **Herunterladen**-Knopf + (Config als `.conf` am PC importieren). ### Behoben - **WireGuard-Aktionen aus dem Dashboard liefen auf dem Host ins Leere („Keine Antwort vom Host").** diff --git a/config/clusev.php b/config/clusev.php index 37f3686..405d133 100644 --- a/config/clusev.php +++ b/config/clusev.php @@ -2,7 +2,7 @@ return [ // First tagged release is v0.1.0 (semantic, not -dev). - 'version' => '0.9.41', + 'version' => '0.9.42', // Deployed commit + branch. install.sh bakes these into .env from the host's .git (the prod // image ships no .git); the Versions page prefers them and falls back to a live .git read in diff --git a/resources/views/livewire/wireguard/index.blade.php b/resources/views/livewire/wireguard/index.blade.php index 09950d7..e91835d 100644 --- a/resources/views/livewire/wireguard/index.blade.php +++ b/resources/views/livewire/wireguard/index.blade.php @@ -273,7 +273,11 @@

{{ __('wireguard.new_peer_once') }}

{{ __('wireguard.import_hint') }}

@if ($resultQr) -
{!! $resultQr !!}
+ {{-- White frame + generous size + crispEdges: a WireGuard config QR is dense (~57 + modules); too small or anti-aliased and a phone camera misreads it. --}} +
+
{!! $resultQr !!}
+
@endif
{{ $resultConfig }}