Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 788 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 788 Bytes

url-proxy

This is a simple URL proxy forwarding program, mainly used for file download.

这是一个简单的网址代理转发程序,主要用于文件的下载。

Binary

Run

go run .\url-proxy.go --help
go run .\url-proxy.go -addr :8888

Build

docker run --rm -v "$PWD":/srv -w /srv golang:1.18 ./build.sh dev

Docker

build

docker build -t ztj1993/url-proxy:latest .

Run

docker run -d --name=uproxy --restart=always -p 8888:8888 ztj1993/url-proxy:latest

Forward

Support forwarding to other url-proxy programs.

支持转发到其它的 url-proxy 程序。

forwarding.conf

github.com http://192.168.100.1:8888
google.com http://192.168.99.1:8888

run:

go run .\url-proxy.go -forward ./forwarding.conf