chance-proxy

command module
v0.0.0-...-ef08e6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

README

chance-proxy

A tiny reverse proxy that disconnects users by chance.

Building

To build chance-proxy, you will need:

After ensuring you have installed all of the prerequisites, run the following commands to build chance-proxy:

git clone https://github.com/interrrp/chance-proxy
cd chance-proxy
go build -ldflags "-s -w" -o chance-proxy .

The executable will now be in the chance-proxy directory. Good job! 😀👍

Docker

The Docker image is available at interrrp/chance-proxy. Try it out:

docker run -it -p 8080:8080 -p 8081:8081 chance-proxy

You may also choose to build it manually:

docker build . -t interrrp/chance-proxy

Configuration

All configuration happens through environment variables or .env.

Copy example.env into .env and change its contents as needed.

Examples

Listen on localhost:25566 and proxy to localhost:25565

chance-proxy -address localhost:25566 -target localhost:25565

Fail 90% of the time:

chance-proxy -failureChance 90

License

chance-proxy is licensed under the GNU General Public License 3.0 license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL