Commit 5013e18b authored by Marek Vavrusa's avatar Marek Vavrusa

lib/nsrep: respect -DFAVOUR_IPV6=X

maintainer may wish to choose neutral or even
more favoured server selection of IPv6 servers.

-DFAVOUR_IPV6=0 makes neutral server selection
-DFAVOUR_IPV6=40 gives IPv6 40ms better chance
parent 65d877cc
......@@ -27,7 +27,9 @@
#include "contrib/ucw/lib.h"
/** Some built-in unfairness ... */
#ifndef FAVOUR_IPV6
#define FAVOUR_IPV6 20 /* 20ms bonus for v6 */
#endif
/** @internal Macro to set address structure. */
#define ADDR_SET(sa, family, addr, len, port) do {\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment