xcl run: make XCL_NETWORK=0 the default (the title's crash reporter uploads dumps when the network is on) #2992
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2992
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@spicbully-star on GitHub · 2026-11-27 09:33 UTC · original
What happens now. The network is open unless the user sets
XCL_NETWORK=0.hle/netoff.rsturns the block on only for that exact value:std::env::var("XCL_NETWORK").is_ok_and(|v| v.trim() == "0"). Without it, the retail title's crash reporter uploads a minidump to an outside server on every crash. The developer notes cover this (HANDOFF.md, "Retail game bring-up, 2026-11-23": "Always run it withXCL_NETWORK=0"), and #702 shows what such a dump contained: the PC's whole environment block, with the user name, computer name, profile paths and the credentials in user variables.The README doesn't mention
XCL_NETWORK. So a new user who just runsxcl run <game>sends crash dumps without knowing it. Testers who follow the issues set it (it's in the env line of the reports in #2582, for example), but that is something you have to know first.The network block itself is in good shape: #305 made it process-wide (
db1ddb2), anded56bcacovers GetAddrInfoExW. The fix for #702 (#730 or #740) is still open, though, so a dump that does get out still carries the environment.Proposal
xcl runbehaves as ifXCL_NETWORK=0, andXCL_NETWORK=1opts in for anyone who needs the title's online calls.network: ON – the title can reach the internet and its crash reporter can upload dumps.I don't know of a feature that needs the network for single-player bring-up today. If there is one, (2) and (3) alone would already help.
I haven't tested a change for this. Our runs (RX 9070 XT, Windows 10, amd-dev) have all used
XCL_NETWORK=0. I'm happy to test a PR.Written with Claude Code (Claude Opus 5.5) from reading main (
hle/netoff.rs,HANDOFF.md, README) and #702, and checked against the source before posting.@ettehn on GitHub · 2026-11-27 10:18 UTC · original
Windows before/after on
623d02e465a17497a757a4ce867f482b0a6c8f3b. I tested a local candidate that enables the existing title-network hooks by default, accepts onlyXCL_NETWORK=1as an opt-in, and reports that opt-in in the host log. Registry-only inspection does not install the process-wide hooks.The synthetic test used a deliberately invalid socket, which cannot transmit. With the variable unset, the original host returned native
WSAENOTSOCK(10038). The candidate returned the detour’sWSAENETUNREACH(10051) for unset,0, empty, and an invalid value.1and whitespace-padded1reached native Winsock. Loopback connected in all six cases. No outside endpoint was contacted.On Windows 11 26200.9974, RTX 5070 Ti Laptop / 621.24, and Rust 1.97.1 MSVC, the candidate passed all 12 focused tests (
e2e,launcher_e2e, and the new policy fixture). The separately built base passed the 11 existing tests with explicitXCL_NETWORK=0. WARP showed the same three synthetic title failures on both revisions. No retail launch or full workspace suite for this candidate.AI use: OpenAI Codex (GPT-6) prepared the local candidate and fixture, ran the comparisons, and drafted this report.