-
-
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 |
For the Mac version of Discord, I extracted the
/Applications/Discord.app/Contents/Resources/app.asarfile 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.jsonand 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
A DLL for forcing Discord to use a specified proxy (HTTP/SOCKS5) for TCP connections. Bypasses local restrictions on voice chats.
Run the program and fill in the proxy settings, then click Install to automatically place the necessary files in the correct folder.
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.
Hello, is there a version for macos ?
hi fellows, I need some head like right now, dw I'm 18... hehehhehehe
is there a version for linux
is there a version for linux
non-flatpak version seems to respect --proxy-server=x.x.x.x:yy format with the server accepting http/https connections on the port
works fine with
{
"chromiumSwitches": {},
"IS_MAXIMIZED": false,
"IS_MINIMIZED": false,
"WINDOW_BOUNDS": {
"x": 128,
"y": 59,
"width": 1280,
"height": 720
},
"SKIP_HOST_UPDATE": true
}
But fails with SKIP_MODULE_UPDATE
is there a version for linux
On linux you can run apps in a namespace and have that network only access the internet via whatever you like.
For future reference with apps that do not respect proxying
worked for me (macOS, zsh)
env https_proxy="http://127.0.0.1:8086" /Applications/Discord.app/Contents/MacOS/Discord
Here's the best way to do it on macOS!
The simple way is by using a terminal and running:
HTTPS_PROXY="http://proxy_address"
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address"
The first line sets the environment, which is crucial for the updater to work natively — and the second line just launches Discord with the native proxy parameter.
But there's a better way!
Now, to make it even better, you can have it run without relying on a terminal either. Just launch Automator, create a new file of type "application", and add a "run shell script" action. There, add the following:
export HTTPS_PROXY="http://proxy_address"
nohup /Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address" > /dev/null 2>&1 &
This will run it without actually spawning a terminal window. Now, just save the workflow. By default it'll be in ~/Library/Services — you can just drag it to your dock, and run it easily at any time.
For the Mac version of Discord, I extracted the
/Applications/Discord.app/Contents/Resources/app.asarfile 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.jsonand add the following two configurations:Run Discord with proxy parameters using the command: