commit bd54bdd4b8d0ac66834fa4897cbea97eac0df120
Author: David Fifield <david@bamsoftware.com>
Date:   Sat Mar 1 15:29:46 2014 -0800

    Use fixed HTTP proxy http://127.0.0.1:8787/.

diff --git a/meek-client/meek-client.go b/meek-client/meek-client.go
index 6ed9289..872e23f 100644
--- a/meek-client/meek-client.go
+++ b/meek-client/meek-client.go
@@ -36,6 +36,14 @@ var globalURL string
 var handlerChan = make(chan int)
 
 func roundTrip(buf []byte, u, host, sessionId string) (*http.Response, error) {
+	proxyURL, err := url.Parse("http://127.0.0.1:8787")
+	if err != nil {
+		return nil, err
+	}
+	proxyFunc := http.ProxyURL(proxyURL)
+	tr := &http.Transport{
+		Proxy: proxyFunc,
+	}
 	req, err := http.NewRequest("POST", u, bytes.NewReader(buf))
 	if err != nil {
 		return nil, err
@@ -45,7 +53,7 @@ func roundTrip(buf []byte, u, host, sessionId string) (*http.Response, error) {
 	}
 	req.Header.Set("Content-Type", "application/octet-stream")
 	req.Header.Set("X-Session-Id", sessionId)
-	return http.DefaultTransport.RoundTrip(req)
+	return tr.RoundTrip(req)
 }
 
 func sendRecv(buf []byte, conn net.Conn, u, host, sessionId string) (int64, error) {
