Skip to content
Snippets Groups Projects
Verified Commit 0cd738af authored by Tomas Krizek's avatar Tomas Krizek
Browse files

daemon/net: omit freebind from net.list() for AF_UNIX

parent 2610ad95
No related branches found
No related tags found
1 merge request!922unify control sockets handling
......@@ -44,9 +44,6 @@ static int net_list_add(const char *key, void *val, void *ext)
lua_newtable(L); // "transport" table
lua_pushboolean(L, ep->flags.freebind);
lua_setfield(L, -2, "freebind");
switch (ep->family) {
case AF_INET:
lua_pushliteral(L, "inet4");
......@@ -73,6 +70,8 @@ static int net_list_add(const char *key, void *val, void *ext)
if (ep->family != AF_UNIX) {
lua_pushinteger(L, ep->port);
lua_setfield(L, -2, "port");
lua_pushboolean(L, ep->flags.freebind);
lua_setfield(L, -2, "freebind");
}
if (ep->family == AF_UNIX) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment