Skip to content

Commit

Permalink
支持DiscordCanary
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Nov 21, 2024
1 parent 1a50f8d commit 11e4269
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ BOOL WINAPI MyCreateProcessW(

auto cmd = std::wstring(lpCommandLine);
std::string::size_type idx = cmd.find(L"\\Discord.exe");
std::string::size_type canaryIdx = cmd.find(L"\\DiscordCanary.exe");


if (g_hasProxy && idx != std::string::npos) {
if (g_hasProxy && (idx != std::string::npos || canaryIdx != std::string::npos)) {
std::string::size_type proxyServerIdx = cmd.find(L"--proxy-server");
if (proxyServerIdx == std::string::npos) {
//���Ӳ���
Expand Down

0 comments on commit 11e4269

Please sign in to comment.