Skip to content

feat(online): Share proxy settings between HTTP and websocket and ask for the proxy login - #646

Open
tintinhamans wants to merge 16 commits into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/go/feat/service-proxy-settings
Open

tintinhamans wants to merge 16 commits into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/go/feat/service-proxy-settings

Conversation

@tintinhamans

@tintinhamans tintinhamans commented Oct 23, 2026 •

Copy link
Copy Markdown

Merge after #645.

HTTP and websocket now share one proxy policy, set in settings.json as network.proxy: mode (automatic follows the Windows settings with static proxy, PAC and WPAD, disabled connects directly, custom uses address) and windows_login (default true). Routes are tried in order when a connection fails. Direct connections use HTTP/3 where available, otherwise HTTP/2, and the websocket uses HTTP/1.1. The scheme of PAC and WPAD results is read with the WinHTTP values, and without a WPAD or PAC file the lookup falls back to the static proxy or direct. Proxies get Basic, Digest or Negotiate (Kerberos with the current Windows account), no NTLM.

When the proxy answers 407 a login dialog opens above the update check box. It reuses the retail GameSpyLoginProfile.wnd layout as a stopgap and the game's own strings where they exist (OK, CANCEL, Password, Remember My Password, Connecting, Connection has failed, the wrong password message), so those are translated. The Windows login is tried silently first. The dialog has a "Use Windows login" checkbox, and when the Windows login is rejected it says "The Windows login was not accepted." Proxy and GO login credentials share the DPAPI protected credentials.json, one entry per server or proxy.

network.server can now be custom with an address (host[:port], https only), with its own login and no fallback. Invalid network values in settings.json are reset to defaults on load and written back. The options menu for all of this is #655.

Build: vcpkg.json adds the curl features http2, http3 and sspi, with an overlay triplet in cmake/triplets.

Tested: z_generals builds. Through local Basic and Digest proxies, set as custom and (Basic) through a Windows PAC script, the update check gets 407, the login dialog opens, the right password connects and a wrong one brings the dialog back with an error. The Windows login checkbox was rig tested against a Basic proxy: it is rejected and the dialog shows "The Windows login was not accepted." Not tested: WPAD, Negotiate against a real Kerberos proxy.

@tintinhamans
tintinhamans force-pushed the arctic/go/feat/service-proxy-settings branch from 0be2203 to e1c3e2b Compare October 24, 2026 10:07
@tintinhamans
tintinhamans marked this pull request as draft October 24, 2026 12:07
@tintinhamans
tintinhamans force-pushed the arctic/go/feat/service-proxy-settings branch 4 times, most recently from 3ef3d03 to 6d44cf3 Compare October 24, 2026 20:42
@tintinhamans
tintinhamans marked this pull request as ready for review October 24, 2026 20:48
xezon added 7 commits October 24, 2026 23:10
…ile::getFileInfo(), StdBIGFile::getFileInfo() (TheSuperHackers#3415)

(cherry picked from commit b805c12)
…File (TheSuperHackers#3505)

Both classes are identical apart from their name and contain no platform specific code.
Nothing in them depends on the BIG format either: they open a file from an offset and a
size inside the archive file. ArchiveFile takes over their functions and is no longer an
abstract class.

(cherry picked from commit 52a777a)
…ystem into BIGFileSystem (TheSuperHackers#3505)

Both classes are identical apart from their name and go through the local file system
for all file access. The one class that remains sits next to ArchiveFileSystem in
Core/GameEngine.

(cherry picked from commit e4b4d1e)
…e loadBigFilesFromDirectory (TheSuperHackers#3505)

loadMods refers to BIG files, which nothing else in ArchiveFileSystem does. It becomes a
virtual function that BIGFileSystem implements. loadBigFilesFromDirectory is renamed to
loadArchiveFilesFromDirectory, because the base class is not tied to one archive format.

(cherry picked from commit f299561)
@tintinhamans
tintinhamans force-pushed the arctic/go/feat/service-proxy-settings branch from ebf4438 to 7f3a4d2 Compare October 25, 2026 11:15
@tintinhamans tintinhamans changed the title feat(online): Share proxy settings between HTTP and websocket feat(online): Share proxy settings between HTTP and websocket and ask for the proxy login Oct 25, 2026
@tintinhamans
tintinhamans force-pushed the arctic/go/feat/service-proxy-settings branch from 7f3a4d2 to c98444b Compare October 25, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants