Function
endpoint_scheme
(config: &openshell_core::Config)
Source from the content-addressed store, hash-verified
| 63 | } |
| 64 | |
| 65 | fn endpoint_scheme(config: &openshell_core::Config) -> &'static str { |
| 66 | if config.tls.is_none() |
| 67 | || (config.bind_address.ip().is_loopback() |
| 68 | && config.service_routing.enable_loopback_service_http) |
| 69 | { |
| 70 | "http" |
| 71 | } else { |
| 72 | "https" |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | fn endpoint_host(config: &ServiceRoutingConfig, sandbox: &str, service: &str) -> Option<String> { |
| 77 | let base_domain = config.base_domains.first()?; |
Tested by
no test coverage detected