commit | 7da02dd308baa40df43b87b5fdca3af8c49e48a8 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Dec 04 14:28:23 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 04 14:28:23 2020 +0100 |
tree | 1171d48cf1919337400ba459bcf2ec726adf3f06 | |
parent | 186f37674c12d85028af87661938d57644c075b4 [diff] |
BUG/MINOR: listener: use sockaddr_in6 for IPv6 A copy-paste bug between {tcp,udp}{4,6}_add_listener() resulted in using a struct sockaddr_in to set the TCP/UDP port while it ought to be a struct sockaddr_in6. Fortunately, the port has the same offset (2) in both so it was harmless. A cleaner way to proceed would be to have a set_port function exported by the address family layer. This needs to be backported to 2.3.