MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / validateScheme

Function validateScheme

validation/validation.go:149–156  ·  view source on GitHub ↗
(scheme string)

Source from the content-addressed store, hash-verified

147}
148
149func validateScheme(scheme string) error {
150 for _, protocol := range supportedProtocols {
151 if scheme == protocol {
152 return nil
153 }
154 }
155 return fmt.Errorf("Currently Cloudflare Tunnel does not support %s protocol.", scheme)
156}
157
158func validateIP(scheme, host, port string) (string, error) {
159 if scheme == "" {

Callers 1

validateUrlStringFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected