Skip to content

Add method to allow retrieval of listener tag during pool configuration #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FinnitoProductions
Copy link
Contributor

Allow for a route to retrieve its associated listener tag. This enables us to use the same route across multiple different listeners, and for it to execute execute custom configuration behavior depending on its associated listener.

@@ -610,6 +613,7 @@ local function main_configure_router(set, pools, c_in)
return id
end
}
ctx._listen_tag = tag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this code missing something? I don't see where tag is coming from.

Copy link
Contributor Author

@FinnitoProductions FinnitoProductions Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry -- missed a couple lines when I was copying over. I'll fix it now

@dormando
Copy link
Member

Could use a test. Looks like the best idea is a new test file with some -l specified. Want to give it a go?

@FinnitoProductions
Copy link
Contributor Author

Sure @dormando, I'll tackle it by EOD!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants