Skip to content

nik9play/discord-linux-bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Linux Bypass

Русский | English

Warning

This library is experimental and may break something. Use at your own risk.

A simple library for bypassing Discord voice chat blocks on Linux. It slightly modifies outgoing UDP traffic to fool DPI systems.

This library is based on the work of a similar library discord-drover for Windows.

Tested with the official Discord app and Vesktop.

Usage

You need to set the LD_PRELOAD variable before launching Discord so that the Discord process loads the library. This library only bypasses voice channel restrictions. For everything else, you need a proxy server.

Download the library from the Releases page.

LD_PRELOAD=<path_to_library>/libdiscordbypass.so discord --proxy-server=<proxy_url>

--proxy-server is optional – if you only need to bypass voice channels, you can omit it.

You can add an alias and modify the .desktop file if you don't want to type this command every time.

discord.sh contains an example script implementation. Place the script and the library in the same directory and make it executable. Depending on the installed app, the script opens either Discord or the modified client. Change the proxy address yourself.

Configuration

By default, the library sends 2 fake packets, followed by a 50 ms delay, after which the real STUN Binding request packet is sent. You can change this behavior by setting the following environment variables:

BYPASS_DELAY=50        # delay before sending the real packet (default: 50)
BYPASS_FAKE_PACKETS=2  # number of fake packets before the real one (default: 2)

Build

You will need gcc and make.

git clone https://github.com/nik9play/discord-linux-bypass.git
cd discord-linux-bypass
make

This produces libdiscordbypass.so in the current directory.

About

Bypasses restrictions on Discord voice chats on Linux. Experimental

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors