| 8 | namespace acl { |
| 9 | |
| 10 | bool http_utils::get_addr(const char* url, char* addr, size_t size) |
| 11 | { |
| 12 | char buf[256]; |
| 13 | unsigned short port; |
| 14 | |
| 15 | if (!get_addr(url, buf, sizeof(buf), &port)) { |
| 16 | return false; |
| 17 | } |
| 18 | safe_snprintf(addr, size, "%s:%d", buf, port); |
| 19 | return true; |
| 20 | } |
| 21 | |
| 22 | #define HTTP_PREFIX "http://" |
| 23 | #define HTTPS_PREFIX "https://" |
nothing calls this directly
no test coverage detected