useECS = server->d_config.useECS;
tcpOnly = server->isTCPOnly();
zeroScope = !server->d_config.disableZeroScope;
+ continue;
}
- else {
- if (consistent) {
- if (server->d_config.useECS != useECS) {
- consistent = false;
- }
- if (server->d_config.disableZeroScope == zeroScope) {
- consistent = false;
- }
+ if (consistent) {
+ if (server->d_config.useECS != useECS) {
+ consistent = false;
}
- if (server->isTCPOnly() != tcpOnly) {
+ if (server->d_config.disableZeroScope == zeroScope) {
consistent = false;
- tcpOnly = false;
}
}
+ if (server->isTCPOnly() != tcpOnly) {
+ consistent = false;
+ tcpOnly = false;
+ }
}
d_tcpOnly = tcpOnly;
Returns the :class:`PacketCache` for this pool or nil.
- .. method:: ServerPool:getDisableZeroScope()
+ .. method:: ServerPool:getZeroScope()
.. versionadded:: 2.0.1
- Whether dnsdist will disable the EDNS Client Subnet :doc:`../advanced/zero-scope` feature when looking up into the cache,
+ Whether dnsdist will enable the EDNS Client Subnet :doc:`../advanced/zero-scope` feature when looking up into the cache,
when all servers from this pool are down.
.. method:: ServerPool:getECS()
:param PacketCache cache: The new cache to add to the pool
- .. method:: ServerPool:setDisableZeroScope(disable)
+ .. method:: ServerPool:setZeroScope(enabled)
.. versionadded:: 2.0.1
- Set to true if dnsdist should disable the EDNS Client Subnet :doc:`../advanced/zero-scope` feature when looking up into the cache,
+ Set to false if dnsdist should disable the EDNS Client Subnet :doc:`../advanced/zero-scope` feature when looking up into the cache,
when all servers from this pool are down.
.. method:: ServerPool:setECS()