@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 or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3858#discussion_r1624182929
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3858/review/2093431056(a)github.com>