williambailey / pacproxy Goto Github PK
View Code? Open in Web Editor NEWA no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file
License: Apache License 2.0
A no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file
License: Apache License 2.0
I just downloaded pacproxy_2.0.0_windows_amd64.exe and when executing it returns
$ ./pacproxy_2.0.0_windows_amd64.exe
panic: open : The system cannot find the file specified.
goroutine 1 [running]:
log.Panic(0xc04206ff20, 0x1, 0x1)
/usr/local/Cellar/go/1.9.2/libexec/src/log/log.go:326 +0xc7
main.main()
/Users/williambailey/Development/go/src/github.com/williambailey/pacproxy/pacproxy.go:47 +0x1e7
Are you sure it's correctly built?
Thank you.
thanks for this simple proxy
specially for providing the ARM exe that is static(maybe?) and runs on openwrt.
how do I static compile it for ARM my self?
Hi! Could you provide unit file to start/stop proxy via systemctl?
Hello - firstly, thank you for this wonderful app.
I was wondering if it'd be possible to add in support for SSL proxies specified in the PAC file using "HTTPS exampleproxy.com:443" instead of "PROXY exampleproxy.com:80"?
Many thanks
I'm trying to use pacproxy to convert shadowsocks pac to simple http proxy, but faced this error.
I actually located some ?=
's in the shadowsocks generated pac file:
....
Filter.elemhideRegExp = /^([^\/\*\|\@"!]*?)#(\@)?(?:([\w\-]+|\*)((?:\([\w\-]+(?:[$^*]?=[^\(\)"]*)?\))*)|#([^{}]+))$/;
....
var candidates = text.toLowerCase().match(/[^a-z0-9%*][a-z0-9%]{3,}(?=[^a-z0-9%*])/g);
....
This would be a huge gain for browsers without PAC support to use socks5 proxy.
2.0.0 beta 1 shows this error and goes into an infinite loop on macOS 10.13.2.
pacproxy -c "http://proxy/proxy.pac" -l "127.0.0.1:3128" -v
2017/12/19 06:57:18.742919 otto.go:57: started OttoEngine
2017/12/19 06:57:18.742950 pacproxy.go:76: Listening on "127.0.0.1:3128"
2017/12/19 06:57:18.743028 otto.go:288: stopping OttoEngine
2017/12/19 06:57:18.743036 otto.go:272: stopped OttoEngine
2017/12/19 06:57:18.743042 pacproxy.go:53: Recovered
2017/12/19 06:57:18.743049 otto.go:73: initialising OttoEngine
2017/12/19 06:57:18.743304 loader.go:46: loading pac from URL "http://proxy/proxy.pac"
2017/12/19 06:57:18.748731 otto.go:254: PAC:
function FindProxyForURL(url, host) {
Browsing to bing via http:// works, but doesn't via https:// using pacproxy. Using the proxy directly works as intended. The verbose output is below, apologies in advance since I know this isn't much to go by.
2017/06/02 03:35:04.193986 Starting pacproxy v1.1.0
2017/06/02 03:35:04.194266 Unloading pac
2017/06/02 03:35:04.194314 Loading pac from string
2017/06/02 03:35:04.202544 console.warn: Default pac configuration loaded
2017/06/02 03:35:04.202626 console.warn: Unless another configuration is loaded only DIRECT connections will be specified
2017/06/02 03:35:04.202674 PAC runtime successfully initialised
2017/06/02 03:35:04.202710 Old PAC runtime has been replaced
2017/06/02 03:35:04.202782 No pac data has yet been located
2017/06/02 03:35:04.203932 Listening on "127.0.0.1:8090"
2017/06/02 03:35:04.203966 Located pac update at file:///home/proxy.pac
2017/06/02 03:35:04.204381 Loading pac from File Locator file:///home/proxy.pac
2017/06/02 03:35:04.218413 PAC runtime successfully initialised
2017/06/02 03:35:04.218480 Old PAC runtime has been replaced
2017/06/02 03:35:31.533194 Successfully processed FindProxyForURL("https://www.bing.com:443", "www.bing.com") result "PROXY 127.0.0.1:8080". Using PROXY "127.0.0.1:8080".
2017/06/02 03:35:34.083201 Successfully processed FindProxyForURL("http://www.bing.com/", "www.bing.com") result "PROXY 127.0.0.1:8080". Using PROXY "127.0.0.1:8080".
Hi,
It seems that websockets are not fully supported.
I checked that with
Below the logs during slack tests:
2020/03/18 16:37:08.932542 proxyhttphandler.go:82: Proxy Lookup "//app.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:09.220901 proxyhttphandler.go:82: Proxy Lookup "//app.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:09.963281 proxyhttphandler.go:82: Proxy Lookup "//devops-vf.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:11.092025 proxyhttphandler.go:82: Proxy Lookup "//a.slack-edge.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:11.800716 proxyhttphandler.go:82: Proxy Lookup "//secure.gravatar.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:12.143337 proxyhttphandler.go:82: Proxy Lookup "//i1.wp.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:16.600172 proxyhttphandler.go:82: Proxy Lookup "//app.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:17.418709 proxyhttphandler.go:82: Proxy Lookup "//edgeapi.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:18.080026 proxyhttphandler.go:82: Proxy Lookup "//s3-us-west-2.amazonaws.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:18.678363 proxyhttphandler.go:82: Proxy Lookup "//slackb.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:19.028480 proxyhttphandler.go:82: Proxy Lookup "//files.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:37:48.610125 proxyhttphandler.go:82: Proxy Lookup "//slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:09.925756 proxyhttphandler.go:82: Proxy Lookup "//files.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.079045 proxyhttphandler.go:82: Proxy Lookup "//files.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.197844 proxyhttphandler.go:82: Proxy Lookup "//a.slack-edge.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.282223 proxyhttphandler.go:82: Proxy Lookup "//files.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.381581 proxyhttphandler.go:82: Proxy Lookup "//devops-vf.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.492763 proxyhttphandler.go:82: Proxy Lookup "//edgeapi.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:10.580793 proxyhttphandler.go:82: Proxy Lookup "//a.slack-edge.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:11.311720 proxyhttphandler.go:82: Proxy Lookup "//slackb.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:19.608825 proxyhttphandler.go:82: Proxy Lookup "//slack-imgs.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:21.435406 proxyhttphandler.go:82: Proxy Lookup "//slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:38:46.474852 proxyhttphandler.go:82: Proxy Lookup "//safebrowsing.googleapis.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:39:03.347631 proxyhttphandler.go:82: Proxy Lookup "//edgeapi.slack.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
2020/03/18 16:39:04.046765 proxyhttphandler.go:82: Proxy Lookup "//s3-us-west-2.amazonaws.com:443", got "PROXY 10.74.70.118:8080; PROXY 10.74.70.119:8080". Selected "PROXY 10.74.70.118:8080"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.