From 10885676075b1f43fdbbc25d0d631e19a16f5cf8 Mon Sep 17 00:00:00 2001 From: midagedev Date: Fri, 28 Aug 2026 09:16:55 +0900 Subject: [PATCH] docs(desktop): cite upstream wails#6047 next to the webview-peer shim normalizeWebviewPeer works around the wails asset server stamping a non-loopback TEST-NET peer on webview requests. The upstream fix is now proposed at wailsapp/wails#6047; note it so the shim's clear can be dropped once a pinned wails version carries a loopback peer. Comment-only. GDK-918 --- desktop/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/main.go b/desktop/main.go index 99d1964e..230da60c 100644 --- a/desktop/main.go +++ b/desktop/main.go @@ -715,6 +715,11 @@ func assetHandler(ui fs.FS, next http.Handler) http.Handler { // RemoteAddr is an in-process call with no network peer at all". The // hardening is untouched; the app merely stops misrepresenting itself. // terminalLocal is the only non-test reader of RemoteAddr in the product. +// +// Upstream fix proposed at wailsapp/wails#6047 (synthesize a loopback peer +// instead of the TEST-NET address). If it lands, this shim can drop the +// clear once the pinned wails version carries it — a webview peer would then +// already read as loopback. func normalizeWebviewPeer(r *http.Request) { r.RemoteAddr = "" }