https://bugs.winehq.org/show_bug.cgi?id=55086
Bug ID: 55086 Summary: Dotnet 7: System.Net.WebSockets.WebSocketException (0x80004005) - SSL cannot be established Product: Wine Version: 8.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: reiichi001@gmail.com Distribution: ---
Created attachment 74637 --> https://bugs.winehq.org/attachment.cgi?id=74637 Error message from POC, which matches error from game modding project
As part of a game modding project, I maintain a plugin that makes use of Discord.Net to relay game messages to Discord.
In recent versions of Wine with .Net 7 for Windows installed (as required by the modding project, as it uses Windows .Net 7), Discord.Net will fail to connect. Previously, this was due to WebSocket mishandling, which looks to have been fixed in Wine 7.18.
When trying to connect to Discord's gateway in Wine 8.10 (current staging), an SSL exception occurs and the connection fails. Please see attached logs.
I've made a quick POC with minimal functionality that can be used for testing/code review. It will run fine on Windows and on native .Net 7 installations, but not in Wine. On discord, the bot will accept a single text command, xl!ping and will respond with "pong" in an embed if working. In Wine, it never connects as noted above.
https://github.com/reiichi001/DiscordNetWinePOC