client disconnects immediately after TLS handshake — SessionManager.Initialize() never called #4
Loading…
Reference in New Issue
user.block.title
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?
Problem
D3 client connects on port 1119, TLS handshake succeeds, but disconnects immediately after
AuthenticationServiceis reached. No login form is shown.Info | Connect with Blizzless established. Client - [::ffff:172.18.0.1]:45966 Info | Game: Diablo 3 | Version: 84161 | Platform: Wn64 | Locale: enUS Info | Client - [::ffff:172.18.0.1]:45966, disconnected
Root Cause
SessionManager.Instance.Initialize()is never called inProgram.cs.Consequences:
/battlenet/loginreturns{"inputs":[]}→ D3 shows no login formSecondary Issue
SessionManager.Initialize()loadsBNetServer.pfxwhich doesn't exist inthe container (or in a standard checkout), causing a crash if called naively:
BIO_new_file() called on non-existent file "BNetServer.pfx"
The certificate is only used for HTTPS — the REST server runs HTTP, so the
cert is not actually needed. The load should be wrapped in a try-catch.
Fix (maybe)
src/DiIiS-NA/Program.cs— call Initialize() before REST server starts: