BUG/MINOR: lua: Correctly use INET6_ADDRSTRLEN in Server.get_addr()
authorNenad Merdanovic <nmerdan@haproxy.com>
Mon, 24 Jul 2017 02:04:59 +0000 (22:04 -0400)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jul 2017 04:53:52 +0000 (06:53 +0200)
commita9f040453acc09e888c3f2dc983f15dcf3fa66e3
tree6dbf879aefc17295454f45cf6df37fb2ea901e20
parent3849473828f319829aff422d2fbbce0823e65d64
BUG/MINOR: lua: Correctly use INET6_ADDRSTRLEN in Server.get_addr()

The get_addr() method of the Lua Server class incorrectly used
INET_ADDRSTRLEN for IPv6 addresses resulting in failing to convert
longer IPv6 addresses to strings.

This fix should be backported to 1.7.
src/hlua_fcn.c