Git Product home page Git Product logo

discord-proxy's Introduction

aiqinxuancai's GitHub stats Top Langs

discord-proxy's People

Contributors

aiqinxuancai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-proxy's Issues

[求助]是否可以使用配置文件?

看代码里面有proxy.ini的描述,但是看不懂c++。
现在的情况是,如果手动启动快捷方式,是可以经过代理的。
但是如果开机自启动的话,就没有代理了,用读取配置文件的话应该会好一点

Another plan (Use bat instead of dll hijack)

@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-1.0.9005 无效

如题,app-1.0.9005 不存在 version.dll 文件,直接放入文件夹后启动无效
环境:Windows 11 + Discord app-1.0.9005 + Clash for Windows v0.19.25

Snipaste_2022-07-28_18-29-19
Snipaste_2022-07-28_18-29-24
Snipaste_2022-07-28_18-28-38
Snipaste_2022-07-28_18-28-44

1.0.9006 卡 Starting

报错一次 app\app-1.0.9006\Discord.exe: invalid option -- -p'`,卡 Starting,看日志是代理在启动某个进程的时候失败了,然后连不到 discord 了。更新没问题

UDP问题

跟朋友屏幕共享,发现 discord在使用 udp 获取屏幕共享,朋友在国外开共享给我看,我卡。
好像你们没做udp代理

在Readme.md里面发现一处拼写错误

要是在意的话就改一下,不在意的话就当我没说

然后在桌面的快捷方式按照上次添加的代理地址(Discord安装时自动创建的那个快捷方式,不要自行从Disocrd.exe创建,具体请见底部)

不要自行从Disocrd.exe创建

不要自行从Discord.exe创建

使用 Python/Bat 脚本完成自动化部署

如 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')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.