Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 797 Bytes

Readme.md

File metadata and controls

36 lines (20 loc) · 797 Bytes

pacroxy

pacproxy is a proxy that parses pac file and start a simple http proxy which will forward http requests to proxies in pac

Install

Download prebuilt binaries from releases

To build from source ensure that Go(>=1.11.5) environment has been properly setup.

go get -u -v github.com/darren/pacroxy

Usage

# Load pac from local file
pacroxy -p wpad.dat -l 127.0.0.1:9999

# Load pac from remote file
pacroxy -p http://wpad.local/wpad.dat -l 127.0.0.1:9999

# To test
curl -x 127.0.0.1:9999 https://example.com

Note

  1. This is a simple tool still in development, use at your own risk.
  2. For https request only https://example.com/ will be passed to FindProxyForURL, ie: no query path is passed