[sr-dev] git:master:19f37c94: core: dns cache condition for both proto ws and wss

Daniel-Constantin Mierla miconda at gmail.com
Sat Jul 15 09:33:36 CEST 2017


Module: kamailio
Branch: master
Commit: 19f37c944748c72a7069a4fd5e3d8c6160a1e557
URL: https://github.com/kamailio/kamailio/commit/19f37c944748c72a7069a4fd5e3d8c6160a1e557

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-15T09:25:44+02:00

core: dns cache condition for both proto ws and wss

---

Modified: src/core/dns_cache.c

---

Diff:  https://github.com/kamailio/kamailio/commit/19f37c944748c72a7069a4fd5e3d8c6160a1e557.diff
Patch: https://github.com/kamailio/kamailio/commit/19f37c944748c72a7069a4fd5e3d8c6160a1e557.patch

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index 577eb48d1f..e37361ffbb 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -2668,7 +2668,7 @@ struct hostent* dns_srv_sip_resolvehost(str* name, unsigned short* port,
 				return ip_addr2he(name,ip);
 			}
 
-			if(srv_proto==PROTO_WS || srv_proto==PROTO_WS) {
+			if(srv_proto==PROTO_WS || srv_proto==PROTO_WSS) {
 				/* no srv records for web sockets */
 				return 0;
 			}




More information about the sr-dev mailing list