https://github.com/cuigh/shadow
A lightweight HTTP proxy for Go.
https://github.com/cuigh/shadow
golang http https proxy
Last synced: 3 months ago
JSON representation
A lightweight HTTP proxy for Go.
- Host: GitHub
- URL: https://github.com/cuigh/shadow
- Owner: cuigh
- License: mit
- Created: 2017-02-09T08:50:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T10:27:48.000Z (over 8 years ago)
- Last Synced: 2025-01-23T10:25:47.032Z (about 1 year ago)
- Topics: golang, http, https, proxy
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shadow
**shadow** is a simple and fast http proxy written by Go.
## Usage
Start a transparent http proxy
```
./shadow -addr :7778
```
With parent proxy
```
./shadow -addr :7777 -proxy :7778
```
Using configuration file instead of command line args
```
./shadow -c shadow.json
```
## Args
Name | Description
---------- | ----------
help, h | Prints usage.
version, v | Prints shadow version.
config, c | configuration file, all other args arg ignored if config is specified.
addr, a | Listen address (default ":1080").
proxy, p | Parent proxy address.
dial_timeout, dt | Timeout for dialing proxy, by milliseconds.
read_timeout, rt | Timeout for waiting response headers, by milliseconds.
verbose | Verbose output.
## Configuration
Here is a config sample
```json
{
"addr": ":7778",
"dial_timeout": 30000,
"read_timeout": 30000,
"proxy": "",
"verbose": true
}
```