This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Oversimplified implementation of a residential forward proxy. | |
| * Upstream proxy, proxy auto-configuration, etc. are not implemented. | |
| * | |
| * How to run: | |
| * ```bash | |
| * wget https://gist.github.com/VPashkov/87f1eedc333804981066447f58dce211/raw/5f7cd79732547dd320dd5d99556dc1ae060972c6/proxy.ts | |
| * cat << EOF > .env | |
| * PROXY_PORT=8888 | |
| * PROXY_USERNAME=username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| throw new Exception('Division by zero.'); |