MCPcopy
hub / github.com/coyove/goflyway / genHost

Method genHost

proxy/util.go:133–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (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
143func (proxy *ProxyClient) encryptRequest(req *http.Request, r *clientRequest) *[ivLen]byte {
144 r.Auth = proxy.UserAuth

Callers 4

canDirectConnectMethod · 0.95
encryptRequestMethod · 0.95
dialUpstreamAndBridgeMethod · 0.95

Calls 1

JibberMethod · 0.80

Tested by

no test coverage detected