(token: &str)
| 781 | } |
| 782 | |
| 783 | fn redact_token(token: &str) -> String { |
| 784 | let len = token.len(); |
| 785 | if len <= 8 { |
| 786 | "*".repeat(len) |
| 787 | } else { |
| 788 | format!("{}...{}", &token[..4], &token[len - 4..]) |
| 789 | } |
| 790 | } |
| 791 | |
| 792 | /// Convert proto ZtDomainConfig to internal ZtDomainConfig |
| 793 | fn proto_to_zt_domain_config( |
no test coverage detected