fork from https://github.com/elazarl/goproxy