mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-25 04:17:42 +00:00
MINOR: lua: add uuid to the Class Proxy
the proxy UUID parameter is not set in the Lua Proxy Class. This patches adds it.
This commit is contained in:
parent
48b4bb4b09
commit
46c72551f3
@ -823,6 +823,10 @@ Proxy class
|
||||
|
||||
Contain the name of the proxy.
|
||||
|
||||
.. js:attribute:: Proxy.uuid
|
||||
|
||||
Contain the unique identifier of the proxy.
|
||||
|
||||
.. js:attribute:: Proxy.servers
|
||||
|
||||
Contain an array with the attached servers. Each server entry is an object of
|
||||
|
@ -781,6 +781,12 @@ int hlua_fcn_new_proxy(lua_State *L, struct proxy *px)
|
||||
lua_pushstring(L, px->id);
|
||||
lua_settable(L, -3);
|
||||
|
||||
/* Add proxy uuid. */
|
||||
lua_pushstring(L, "uuid");
|
||||
snprintf(buffer, sizeof(buffer), "%d", px->uuid);
|
||||
lua_pushstring(L, buffer);
|
||||
lua_settable(L, -3);
|
||||
|
||||
/* Browse and register servers. */
|
||||
lua_pushstring(L, "servers");
|
||||
lua_newtable(L);
|
||||
|
Loading…
Reference in New Issue
Block a user