Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions desktop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}
Expand Down
Loading