-
-
Save Colk-tech/157fd6c81032dde528d3a22434b8f3e6 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=http://po.cc.ibaraki-ct.ac.jp:3128 |
USE THIS: Remove "http://" and it works! Enjoy
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=127.0.0.1:7890
OR
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=0.0.0.0:7890
dose not work
$ /Applications/Discord.app/Contents/MacOS/Discord --proxy-server=127.0.0.1:7890
Discord 0.0.266
Starting app.
Starting updater.
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Module install path: /Users/ruki/Library/Application Support/discord/0.0.266/modules
[Modules] Module installed file path: /Users/ruki/Library/Application Support/discord/0.0.266/modules/installed.json
[Modules] Module download path: /Users/ruki/Library/Application Support/discord/0.0.266/modules/pending
[Modules] No updates to install
[Modules] Checking for host updates.
[Modules] Host update failed: Error: An SSL error has occurred and a secure connection to the server cannot be made. Would you like to connect to the server anyway?
[Modules] Checking for host updates.
[Modules] Host update failed: Error: An SSL error has occurred and a secure connection to the server cannot be made. Would you like to connect to the server anyway?
It does not work on my macOS which downloaded from app store.
env http_proxy="socks5://0.0.0.0:7890" https_proxy="socks5://0.0.0.0:7890" "/Applications/Discord.app/Contents/MacOS/Discord.real" --proxy-server="socks5://0.0.0.0:7890"
Thanks, it worked well on macos
http_proxy=http://127.0.0.1:8118 https_proxy=http://127.0.0.1:8118 /Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://127.0.0.1:8118"
work for me
Does not work on Windows.
For Windows users reading this, there has been work done in the discord-proxy project, with the original guide in this Zhihu post.
Extract the included dll from release to the app folder at %localappdata%/Discord
, add the proxy argument to a Discord.exe shortcut. If Discord doesn't start, make a shortcut to the Update.exe
instead and add the argument there.
A even more convenient, experimental method would be the DiscordProxyStart project, which eliminates the need to manually replace the dll file.
It seems that Update.exe is written in C# language. All C# programs support the use of. config configuration items to configure process agents. Save the following content as Update.exe.config and store it in the same directory as Update.exe.
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </configSections> <system.net> <!--Configure fiddler local proxy--> <defaultProxy> <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:1080" usesystemdefault="false" /> </defaultProxy> </system.net> </configuration>
For Windows users reading this, there has been work done in the discord-proxy project, with the original guide in this Zhihu post. Extract the included dll from release to the app folder at
%localappdata%/Discord
, add the proxy argument to a Discord.exe shortcut. If Discord doesn't start, make a shortcut to theUpdate.exe
instead and add the argument there.A even more convenient, experimental method would be the DiscordProxyStart project, which eliminates the need to manually replace the dll file.
On 2023/5/6 this still works. Although there is one issue for the helper project DiscordProxyStart:
- Initially
C:\Users\<USERNAME>\AppData\Local\Discord
contains the application in sub-folder "app-1.0.9012" - Using "DiscordProxyStart.exe" you can see it successfully connects as long as you've configured your proxy correctly
- Then "Update.exe" downloads a newer app version "app-1.0.9013", and the process restarts
- Now "Update.exe" is unable to connect since the "version.dll" file is not copied into new app sub-folder "app-1.0.9013"
It seems that Update.exe is written in C# language. All C# programs support the use of. config configuration items to configure process agents. Save the following content as Update.exe.config and store it in the same directory as Update.exe.
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </configSections> <system.net> <!--Configure fiddler local proxy--> <defaultProxy> <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:1080" usesystemdefault="false" /> </defaultProxy> </system.net> </configuration>
This does not work. If it's that simple, there would be no need to create a project like the discord-proxy
@zeroxia I too have experienced the same issue when Discord updated. As a workaround, you can copy the original version.dll
from the old app
folder to the new app
folder and start DiscordProxyStart again. Maybe it will be fixed in future releases @aiqinxuancai?
For Windows users reading this, there has been work done in the discord-proxy project, with the original guide in this Zhihu post. Extract the included dll from release to the app folder at
%localappdata%/Discord
, add the proxy argument to a Discord.exe shortcut. If Discord doesn't start, make a shortcut to theUpdate.exe
instead and add the argument there.
A even more convenient, experimental method would be the DiscordProxyStart project, which eliminates the need to manually replace the dll file.On 2023/5/6 this still works. Although there is one issue for the helper project DiscordProxyStart:
- Initially
C:\Users\<USERNAME>\AppData\Local\Discord
contains the application in sub-folder "app-1.0.9012"- Using "DiscordProxyStart.exe" you can see it successfully connects as long as you've configured your proxy correctly
- Then "Update.exe" downloads a newer app version "app-1.0.9013", and the process restarts
- Now "Update.exe" is unable to connect since the "version.dll" file is not copied into new app sub-folder "app-1.0.9013"
It seems that Update.exe is written in C# language. All C# programs support the use of. config configuration items to configure process agents. Save the following content as Update.exe.config and store it in the same directory as Update.exe.
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </configSections> <system.net> <!--Configure fiddler local proxy--> <defaultProxy> <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:1080" usesystemdefault="false" /> </defaultProxy> </system.net> </configuration>
This does not work. If it's that simple, there would be no need to create a project like the discord-proxy
@zeroxia I too have experienced the same issue when Discord updated. As a workaround, you can copy the original
version.dll
from the oldapp
folder to the newapp
folder and start DiscordProxyStart again. Maybe it will be fixed in future releases @aiqinxuancai?
[@e5st7]
https://github.com/aiqinxuancai/DiscordProxyStart/releases/tag/v0.0.6
This issue should have been fixed already.
For the Mac version of Discord, I extracted the /Applications/Discord.app/Contents/Resources/app.asar
file and found in the code that the Mac update uses electron.autoUpdater
, which means the proxy settings do not take effect. My solution is to bypass the autoUpdater. Here are the steps:
-
Edit the file
/Users/admin/Library/Application\ Support/discord/settings.json
and add the following two configurations:"SKIP_HOST_UPDATE": true, "SKIP_MODULE_UPDATE": true
-
Run Discord with proxy parameters using the command:
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=127.0.0.1:7890 --ignore-certificate-errors
For the Mac version of Discord, I extracted the
/Applications/Discord.app/Contents/Resources/app.asar
file and found in the code that the Mac update useselectron.autoUpdater
, which means the proxy settings do not take effect. My solution is to bypass the autoUpdater. Here are the steps:
- Edit the file
/Users/admin/Library/Application\ Support/discord/settings.json
and add the following two configurations:"SKIP_HOST_UPDATE": true, "SKIP_MODULE_UPDATE": true
- Run Discord with proxy parameters using the command:
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=127.0.0.1:7890 --ignore-certificate-errors
Thanks, he works on my macos
Hello
I use Linux ( Linux 6.5.0-kali3-amd64 ) Gnome version 44.1
How can i use discord using proxy ( with my credentials provided by college )
Another solution for Windows: https://github.com/hdrover/discord-drover
Is there any way to pass the username and password for protected proxies?
Good solution for Windows is https://github.com/runetfreedom/discord-voice-proxy
You can redirect all Discord traffic to a socks5 proxy (including webrtc).
Password auth is also supported.
USE THIS:
Remove "http://" and it works! Enjoy
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=127.0.0.1:7890
OR
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=0.0.0.0:7890