MCPcopy
hub / github.com/cacggghp/vk-turn-proxy / localCaptchaURLForTarget

Function localCaptchaURLForTarget

client/manual_captcha.go:59–71  ·  view source on GitHub ↗
(targetURL *neturl.URL)

Source from the content-addressed store, hash-verified

57}
58
59func localCaptchaURLForTarget(targetURL *neturl.URL) string {
60 localURL := &neturl.URL{
61 Scheme: "http",
62 Host: "localhost:" + captchaListenPort,
63 Path: targetURL.Path,
64 RawPath: targetURL.RawPath,
65 RawQuery: targetURL.RawQuery,
66 }
67 if localURL.Path == "" {
68 localURL.Path = "/"
69 }
70 return localURL.String()
71}
72
73func targetOrigin(targetURL *neturl.URL) string {
74 return targetURL.Scheme + "://" + targetURL.Host

Callers 2

solveCaptchaViaProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected