diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-26 02:16:54 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-26 02:16:54 -0500 |
| commit | b0fb528c2788fd52f348115e15f1b0914fbeea29 (patch) | |
| tree | 04a60cbb22169826aaa1760d571215fa4ef1175c /runtime/test/process_cmdline_test.cpp | |
| parent | 660e6f80641a6e1e3cd9968bac293b354108fc17 (diff) | |
winsock: the title reaches loopback only
The retail executable imports 25 ws2_32.dll functions (23 by ordinal,
getaddrinfo, freeaddrinfo) and they were bound to the host's, so a --run
could open real sockets. Port VIctory's net.rs (GPL-3.0-or-later):
connect, WSAConnect, ConnectEx and WSASendMsg from WSAIoctl, sendto and
WSASendTo to anything but 127.0.0.0/8 and ::1 fail with WSAENETUNREACH;
forward lookups other than localhost and IP literals fail with
WSAHOST_NOT_FOUND; reverse lookups of other addresses come back numeric
or fail; binds to all interfaces are narrowed to loopback. Served by name
and by the classic ordinals (2, 4, 20, 51, 52); ws2_32.dll stays a host
module for the rest. winsock_offline_test opens loopback sockets only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/process_cmdline_test.cpp')
0 files changed, 0 insertions, 0 deletions