Skip to content

suconghou/sproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what's this

sni proxy

http proxy

https proxy

port forward

use rollup development

npm i uglify-es -g
npm i rollup -g
make dev
make build

single js file , no dependencies

usage

env

PORT tcp listen port

SSLPORT default ssl connection port

ECHOPORT flag run as echo server

FORWARD_HOST ip or domain , flag run as port forward server

FORWARD_PORT port

make it executeable directly

echo '#!/usr/bin/env node' | cat - bundle.js > sproxy && chmod +x sproxy

thanks

https://github.com/buschtoens/sni

https://github.com/jessetane/is-tls-client-hello