@xkaraman commented on this pull request.
> @@ -1833,6 +1847,23 @@ ip_addr_t *str2ip(str *st) return ipb; } +struct hostent *__resolvehost(char *name) +{ + if(dns_cache_init) { + return dns_resolvehost(name); + } else { + return _resolvehost(name); + } +} + +struct hostent *__sip_resolvehost(str *name, unsigned short *port, char *proto) +{ + if(dns_cache_init) { + return dns_sip_resolvehost(name, port, proto); + } else {
True, both way are valid though. I think it's clearer with the else
, but if maintainers have a preference I am fine to change that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.