(rule *ingress.Rule, req *http.Request)
| 387 | } |
| 388 | |
| 389 | func 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 | } |
no test coverage detected