MCPcopy
hub / github.com/cloudflare/cloudflared / getDestFromRule

Function getDestFromRule

proxy/proxy.go:389–396  ·  view source on GitHub ↗
(rule *ingress.Rule, req *http.Request)

Source from the content-addressed store, hash-verified

387}
388
389func getDestFromRule(rule *ingress.Rule, req *http.Request) (string, error) {
390 switch rule.Service.String() {
391 case ingress.ServiceBastion:
392 return carrier.ResolveBastionDest(req)
393 default:
394 return rule.Service.String(), nil
395 }
396}

Callers 1

ProxyHTTPMethod · 0.85

Calls 2

ResolveBastionDestFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected