[READ-ONLY] Mirror of https://github.com/andrioid/ublproxy. andrioid.github.io/ublproxy
adblock adblock-plus-list adblocker privacy-tools proxy-server self-hosted

Add WebSocket support for both ws:// and wss:// connections master

Detect WebSocket upgrade requests before hop-by-hop header stripping, re-add Connection/Upgrade headers, and after a 101 response switch to bidirectional copy between client and upstream. Uses a readerWriter adapter in CONNECT tunnels to handle buffered reads from bufio.Reader.