phus/goagent — pull request #10 by madeye (2012-02-12 05:47:53+00:00)
Title: Fix for redsocks

When using transparent proxy for HTTPS, things becomes tricky. The proxy, for example redsocks, will try to do CONNECT with the IP address directly. That means we have to use headers['Host'] to reconstruct the request line.

Here is a workaround for that issue. But the limitation is that the certificate faking still cannot work correctly. Even worse, it seems impossible to generate correct certificates when using transparent proxy.

Regards,
Max Lv