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

Function parseAllowRequest

cmd/cloudflared/access/cmd.go:484–492  ·  view source on GitHub ↗

parseAllowRequest will parse cmdArgs and return a copy of the args and result of the allow request was present

(cmdArgs []string)

Source from the content-addressed store, hash-verified

482// parseAllowRequest will parse cmdArgs and return a copy of the args and result
483// of the allow request was present
484func parseAllowRequest(cmdArgs []string) ([]string, bool) {
485 if len(cmdArgs) > 1 {
486 if cmdArgs[0] == "--allow-request" || cmdArgs[0] == "-ar" {
487 return cmdArgs[1:], true
488 }
489 }
490
491 return cmdArgs, false
492}
493
494// processURL will preprocess the string (parse to a url, convert to punycode, etc).
495func processURL(s string) (*url.URL, error) {

Callers 1

curlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected