When nameservers are parsed from /etc/resolv.conf, rspamd was setting
the upstream rotation strategy to RSPAMD_UPSTREAM_MASTER_SLAVE, which
caused it to only use the first nameserver unless it failed.
This behavior was inconsistent with the documented round-robin strategy
and with the behavior when nameservers are explicitly configured via
the configuration file.
Fixed by changing the rotation strategy to RSPAMD_UPSTREAM_ROUND_ROBIN
when parsing /etc/resolv.conf, matching the expected behavior.
Fixes RSP-284
rspamd_upstreams_set_flags(dns_resolver->ups,
RSPAMD_UPSTREAM_FLAG_DNS);
rspamd_upstreams_set_rotation(dns_resolver->ups,
- RSPAMD_UPSTREAM_MASTER_SLAVE);
+ RSPAMD_UPSTREAM_ROUND_ROBIN);
if (!rdns_resolver_parse_resolv_conf_cb(dns_resolver->r,
"/etc/resolv.conf",