]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: Add proxy as member of proxy object.
authorThierry FOURNIER <thierry.fournier@ozon.io>
Mon, 24 Jul 2017 11:59:22 +0000 (13:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Jul 2017 16:18:40 +0000 (18:18 +0200)
commitf2bbe38242cb4c3801c87323efc0d4f0400b9ae6
treedca1fb88d9878d1a12137a5487443e7efd035385
parentd1aa41f83b75f874d9586facc0f93ae4b1b51783
MINOR: lua: Add proxy as member of proxy object.

By Adis Nezirovic:

   This is just for convenience and uniformity, Proxy.servers/listeners
   returns a table/hash of objects with names as keys, but for example when
   I want to pass such object to some other Lua function I have to manually
   copy the name (or wrap the object), since the object itself doesn't
   expose name info.

This patch simply adds the proxy name as member of the proxy object.
src/hlua_fcn.c