• Stars
    star
    538
  • Rank 82,092 (Top 2 %)
  • Language
    C++
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

给Discord的Windows客户端添加代理,Add a proxy to discord windows client

discord-proxy

visitor badge

上篇文章中的方法已经失效了很久,也时不时有人问是否有别的设置方法,看了一圈,发现并没有比较独立的设置代理的方案,最简单的是设置系统环境变量来实现updater.node的代理,但是这个设置会影响所有系统的控制台程序。

所以我就自己实现了一个DLL劫持方案。

简单来说原理是version.dll会在Discord.exe启动时跟随加载,读取并存储命令行中的代理地址(http....),并且拦截Discord的updater.node模块读取环境变量的操作,将命令行中的代理地址直接返回,这样就无需修改系统的环境变量。

开始使用

方法一:手动下载release.zip并解压version.dll

https://github.com/aiqinxuancai/discord-proxy/releases

将version.dll放在Discord.exe所在目录(如Discord有更新,则可能需要重新放一下)

discord-proxy

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

discord-proxy

注意最前面有个空格,地址请根据自身情况调整

 --a=--proxy-server=http://127.0.0.1:1081

如此就设置完毕了,使用桌面快捷方式运行即可。

方法二:使用此项目自动复制version.dll并启动Discord(实验

https://github.com/aiqinxuancai/DiscordProxyStart

下载:Release


如果你还是进不去,请看这里:

检查快捷方式对不对

上面所说的桌面快捷方式为安装时自动创建的快捷方式,目标指向是Update.exe,而非自行从Discord.exe所创建的,修改完毕后的完整命令行样例:

C:\Users\xxxxxx\AppData\Local\Discord\Update.exe --processStart Discord.exe --a=--proxy-server=http://127.0.0.1:1081

注意代理规则

如果用的clash代理,请注意下代理规则,检查discord相关域名流量是否通过代理,v2、ss、ssr为指定端口全代所以不用另外做什么。

不支持Socks代理

目前不支持socks代理,请使用http代理,如果实在是需要,可以用此项目将socks代理转为http代理:https://github.com/ginuerzh/gost

More Repositories

1

DiscordProxyStart

实验项目,在任意位置运行本项目exe,自动配置并启动添加独立代理的discord
C#
73
star
2

TiktokenSharp

This project implements token calculation for OpenAI's gpt-3.5-turbo model, specifically using `cl100k_base` encoding.
C#
69
star
3

WkyFast

简易玩客云PC客户端,支持批量任务添加和订阅下载
C#
42
star
4

ChatGPTSharp

This project implements ChatGPT continuous dialogue based on ConversationId, which can be quickly integrated with just a few lines of code. It supports models such as gpt-4, gpt-3.5-turbo, and text-davinci-003.
C#
21
star
5

EvernoteToNotionChrome

Evernote迁移至Notion的工具,Tools for Evernote to Notion migration
C#
17
star
6

WkyApiSharp

玩客云c#的API,支持登录、添加下载、获取任务列表等操作。
C#
8
star
7

TextCNN.TorchSharp

TorchSharp实现TextCNN,中文文本分类,Chinese-Text-Classification-TorchSharp
C#
7
star
8

JPAIUEO-Vue

Hiragana and Katakana desktop learning tools
JavaScript
6
star
9

GiveMeFive

Large screen lucky draw 公司年会大屏幕抽奖
C#
6
star
10

OxoBrowser

用于DMM游戏的通用浏览器框架
C#
6
star
11

Aliyun.ForwardURL

自己转发自己的机场订阅,带有缓存功能,避免突发情况订阅无法访问等问题
C#
6
star
12

KanColleNote

Tools like logbook
C#
2
star
13

MinecraftSkinToHead

generate avatar image from Minecraft skin file
C#
2
star
14

PhotoInfoFix

Batch repair for picture Exif time errors due to inaccurate camera time
C#
2
star
15

WebApiLogView

C#
2
star
16

EOSRAMMonitor

EOS MainNet RAM Price Monitor Tool
C#
2
star
17

ASUS_BIOS_Replace

华硕BIOS魔改前替换部分旧代码到新的BIOS文件中,代码没测过,主要用来实验bflat构建
C#
2
star
18

DotNetDllPathPatcherWPF

C#
2
star
19

JPAIUEO

基于WPF,放置在桌面的50音助记小工具
C#
1
star
20

XibToMasonry

C#
1
star
21

AiHttpHook

get http and https requests data
C++
1
star
22

toukenbrowser-vue

测试项目,用于测试vue提取flash
JavaScript
1
star
23

EasyFne

易语言vs2017、vs2019的c++支持库模版
C
1
star
24

QinRSS

QinRSS是QQ机器人RSS订阅订阅插件,基于OneBot12协议,支持从RSSHub站点获取内容并发送到QQ群或QQ频道中。
C#
1
star
25

BattleList

74eo-BattleList
C#
1
star
26

version-dll-hijack

x64 version.dll hijack, vs2019 project
C++
1
star
27

VSProjectRename

vs项目更名
C#
1
star