浏览代码

dispatcher: skip ping for DS_NODNSARES_DST

Stefan Mititelu 7 月之前
父节点
当前提交
5f29b44916
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/modules/dispatcher/dispatch.c

+ 3 - 0
src/modules/dispatcher/dispatch.c

@@ -4114,6 +4114,9 @@ void ds_ping_set(ds_set_t *node)
 		/* skip addresses with no-ping flag */
 		if((node->dlist[j].flags & DS_NOPING_DST) != 0)
 			continue;
+		/* skip addresses with no-DNS-A flag */
+		if((node->dlist[j].flags & DS_NODNSARES_DST) != 0)
+			continue;
 		/* If the Flag of the entry has "Probing set, send a probe:	*/
 		if(ds_ping_result_helper(node, j)) {
 			LM_DBG("probing set #%d, URI %.*s\n", node->id,