()
| 131 | } |
| 132 | |
| 133 | func (proxy *ProxyClient) genHost() string { |
| 134 | const tlds = ".com.net.org" |
| 135 | if proxy.DummyDomain == "" { |
| 136 | i := proxy.Rand.Intn(3) * 4 |
| 137 | return proxy.Cipher.Jibber() + tlds[i:i+4] |
| 138 | } |
| 139 | |
| 140 | return proxy.DummyDomain |
| 141 | } |
| 142 | |
| 143 | func (proxy *ProxyClient) encryptRequest(req *http.Request, r *clientRequest) *[ivLen]byte { |
| 144 | r.Auth = proxy.UserAuth |
no test coverage detected