]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: dns: inacurate comment about prefered IP score
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 22 Jun 2018 10:51:51 +0000 (12:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Jul 2018 15:55:16 +0000 (17:55 +0200)
The comment was about "prefered network ip version" while it's actually
"prefered ip version" in the code.
Fixed

Backport status: 1.7 and 1.8
  Be careful, this patch may not apply on 1.7, since the score was '4'
  for this item at that time.

src/dns.c

index 8ae183f984da8b0486879f0c2224c4867773c798..c86e57d9c829f53e4fba8367a30425c08962c96e 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -976,7 +976,7 @@ int dns_get_ip_from_response(struct dns_response_packet *dns_p,
         *
         * For these three priorities, a score is calculated. The
         * weight are:
-        *  8 - prefered netwok ip version.
+        *  8 - prefered ip version.
         *  4 - prefered network.
         *  2 - if the ip in the record is not affected to any other server in the same backend (duplication)
         *  1 - current ip.