commit | 2ec2db9725fb54a76c726c5b8cc502071c575d28 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Mon Jan 08 16:28:57 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 09 15:43:11 2018 +0100 |
tree | 0517cb2f1a51e99b6461256fb940b61846b3efad | |
parent | 119a5f10e47f3507e58116002583e1226473485d [diff] |
MINOR: dns: Handle SRV record weight correctly. A SRV record weight can range from 0 to 65535, while haproxy weight goes from 0 to 256, so we have to divide it by 256 before handing it to haproxy. Also, a SRV record with a weight of 0 doesn't mean the server shouldn't be used, so use a minimum weight of 1. This should probably be backported to 1.8.