Skip to content

Commit f0a65d0

Browse files
Add listen_tag function
1 parent caec102 commit f0a65d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/routelib/routelib.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ local function main_configure_router(set, pools, c_in)
545545
cmd = function(self)
546546
return self._cmd
547547
end,
548+
listen_tag = function(self)
549+
return self._listen_tag
550+
end,
548551
check_child = function(self, child)
549552
-- ensure this child is a string of a valid pool
550553
if type(child) ~= "string" then
@@ -610,6 +613,7 @@ local function main_configure_router(set, pools, c_in)
610613
return id
611614
end
612615
}
616+
ctx._listen_tag = tag
613617

614618
if set.map then
615619
-- a prefix map

0 commit comments

Comments
 (0)