aiqinxuancai / discord-proxy Goto Github PK
View Code? Open in Web Editor NEW给Discord的Windows客户端添加代理,Add a proxy to discord windows client
给Discord的Windows客户端添加代理,Add a proxy to discord windows client
看代码里面有proxy.ini的描述,但是看不懂c++。
现在的情况是,如果手动启动快捷方式,是可以经过代理的。
但是如果开机自启动的话,就没有代理了,用读取配置文件的话应该会好一点
@echo off
set https_proxy=http://127.0.0.1:1080
set http_proxy=http://127.0.0.1:1080
start Discord.exe --proxy-server=http://127.0.0.1:1080
--a
is used by old Windows version of Discord, and should be removed now.
报错一次 app\app-1.0.9006\Discord.exe: invalid option --
-p'`,卡 Starting,看日志是代理在启动某个进程的时候失败了,然后连不到 discord 了。更新没问题
在测试代理无问题,开启系统代理时可以进入,可能是dc更改了一些东西所以无法连接?
尝试了https://github.com/aiqinxuancai/DiscordProxyStart 以及单独将version.dll放进版本文件夹并且按要求配置还是不行
win10, 使用该教程1.0.9003能够登录。现在Discord 自动更新到版本1.0.9004,然后处于Starting 进入不了,卸载重装也不行也处于STARTING...,请问如何解决,谢谢
你知道为什么之前的方法会失效吗?
跟朋友屏幕共享,发现 discord在使用 udp 获取屏幕共享,朋友在国外开共享给我看,我卡。
好像你们没做udp代理
要是在意的话就改一下,不在意的话就当我没说
然后在桌面的快捷方式按照上次添加的代理地址(Discord安装时自动创建的那个快捷方式,不要自行从Disocrd.exe创建,具体请见底部)
不要自行从Disocrd.exe创建
不要自行从Discord.exe创建
如 README 所言,在 Discord 每次升级后都要重新放 version.dll
,并且重新修改快捷方式。
为了省去复制粘贴的过程,写了个 Python 脚本自动化部署。
脚本内容太简单了,直接发 issues 算了,不混 PR。
import shutil
USERNAME = 'Konano'
PROXY_SERVER = 'http://127.0.0.1:7890'
# 读物 lnk 二进制文本
f = open('Discord.lnk', 'rb').read()
# 添加 proxy-server
s = b'\x1A\x00' + '\x00'.join('--processStart Discord.exe').encode() + b'\x00'
c = bytes([46 + len(PROXY_SERVER), 0]) + '\x00'.join(f'--processStart Discord.exe --a=--proxy-server={PROXY_SERVER}').encode() + b'\x00'
f = f.replace(s, c)
# 将修改后的 lnk 写回文件
open('Discord.lnk', 'wb').write(f)
# 从 lnk 读取 Discord 的主程序目录
d = '\x00'.join(f'C:\\Users\\{USERNAME}\\AppData\\Local\\Discord\\app-').encode()
a = f.find(d)
l = f[a-2]
d = f[a:a+l*2].replace(b'\x00', b'').decode()
# 获取 version.dll 的位置,这里默认是 Discord 的主程序目录上一级,我把 version.dll 放这里了
e = d.rsplit('\\', 1)[0]
shutil.copyfile(e+'\\version.dll', d+'\\version.dll')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.