Skip to content

app-fast/fpgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fasthttp forward proxy

Features

  • Fasthttp
  • http/https proxy
  • ws/wss proxy
  • Compression
  • Multi DNS nameserves (-n "1.1.1.1:53,8.8.8.8:53")
  • Graceful shutdown

Usage

./fpgo -h # Show usage

Usage of ./fpgo:
  -a string
        Listen address. (default ":13002")
  -c int
        Max concurrency for fasthttp server (default 512)
  -h    Show usage
  -n string
        DNS nameserves, E.g. "8.8.8.8:53" or "1.1.1.1:53,8.8.8.8:53". Default is empty
  -t duration
        Connection timeout. Examples: 1m or 10s (default 1m0s)

Example

./fpgo -a "0.0.0.0:13002" -c 1000 -n "8.8.8.8:53,1.1.1.1:53" -t 30s
curl -x http://localhost:13002 http(s)://example.com

Credits

Licence

Public domain