Add IPv6/Dual Stack + read servers.dat#816
Conversation
|
Related to #498 ? |
I would say so |
|
Consider collaborating with that PR author |
|
Basically, the separated dedicated server works by calling functionality from the |
|
Okay. Ask someone to test your PR |
I'll see if I can get someone to test tmr, it's 3:04 AM right now for me. |
|
I just realized I think I accidentally reverted some of #722, no clue how I messed that up. |
c1e8c97 to
ba3ab32
Compare
Also Fix SetupHeadlessServerConsole() to use an existing console if possible. Read Java servers.dat, I like it more then the text file, but it's optional.
ba3ab32 to
b867c27
Compare
|
I've amended it now, I'll see if I can get some friends to test it a bit later. |
Description
Modifies WinsockNetLayer.cpp to use Dual stack/IPv6 support
Modifies PlatformNetworkManagerStub.cpp to read Java "servers.dat"
fix flaw in SetupHeadlessServerConsole()
Changes
Add a little helper WinsockNetLayer::IsNumericAddress,
Modify HostGame, AcceptThreadProc
Modify CPlatformNetworkManagerStub::SearchForGames() to read java "servers.dat"
I also changed the "servers.txt" logic slightly to make sure it works with IPv6 addresses
SetupHeadlessServerConsole() now attempts AttachConsole(ATTACH_PARENT_PROCESS) first
Previous Behavior
IPv6 support just didn't exist
Root Cause
It's old
New Behavior
It now uses the IPv6 flags and IP parsing logic
Fix Implementation
AI Use Disclosure
No AI was used for this