Net: allow local machine hostname in resolvable and loopback_name #1380
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1380
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1380/head"
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?
@ashrafsdrop on GitHub · 2026-11-24 17:40 UTC · original
ashrafsdrop:net/local-hostname-resolution→main· +51 −4 · 1 files · 1 commits · closed without mergingSummary
Resolves VIC-BT-039 from #1249:
resolvable()andloopback_name()incrates/victory-hle/src/modules/net.rspreviously blocked any non-numeric hostname other than"localhost"withWSAHOST_NOT_FOUND.gethostname()) failed to resolve local endpoints when establishing sockets.ws2_32.dllgethostname, permitting it inresolvable()and treating it as a loopback endpoint inloopback_name().net.rsassertinggetaddrinfo()resolves the machine's local hostname.Verification
cargo test -p victory-hle: 94 tests passed, 0 failed.cargo clippy -p victory-hle --all-targets --all-features -- -D warnings: clean, 0 warnings.cargo run -p xtask -- policy: 154 files ok.@acetonahard-code on GitHub · 2026-11-24 21:02 UTC · original
Tested on Windows 11 with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-hlemainmain+ this PRcargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@Marvisak on GitHub · 2026-11-25 00:39 UTC · original
Automated triage for the maintainers. Closing because it breaks a repository rule (see
docs/asset-policy.mdand the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed