Net: allow local machine hostname in resolvable and loopback_name #1380
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1380"
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?
Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-24T17:40:04Z.
Summary
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.Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:02:53Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:39:21Z.
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.
upstream-sync referenced this pull request2026-11-25 10:07:34 +00:00
Pull request closed