Module: kamailio
Branch: master
Commit: 03f844bbe842107ad09cbf46bfcbff722e788937
URL:
https://github.com/kamailio/kamailio/commit/03f844bbe842107ad09cbf46bfcbff7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-05T11:07:56+02:00
dispatcher: fix compile error by previous commit pushing unsaved files
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/03f844bbe842107ad09cbf46bfcbff7…
Patch:
https://github.com/kamailio/kamailio/commit/03f844bbe842107ad09cbf46bfcbff7…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index b770a02a40..c62f484b8f 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -3352,7 +3352,7 @@ int ds_is_addr_from_set(sip_msg_t *_m, struct ip_addr *pipaddr,
/* dst record using hotname with dns not done - no ip to match */
continue;
}
- if(ds_dns_mode != DS_DNS_MODE_ALWAYS) {
+ if(!(ds_dns_mode & DS_DNS_MODE_ALWAYS)) {
ipa = &node->dlist[j].ip_address;
} else {
memcpy(hn, node->dlist[j].host.s, node->dlist[j].host.len);
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 6a1b88c484..8ff3307548 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -120,7 +120,7 @@ int ds_hash_check_interval = 30;
int ds_timer_mode = 0;
int ds_attrs_none = 0;
int ds_load_mode = 0;
-uint32_t ds_dns_mode = DS_DNS_INIT;
+uint32_t ds_dns_mode = DS_DNS_MODE_INIT;
static int ds_dns_mode_param = 0;
str ds_outbound_proxy = STR_NULL;