Skip to content
New issue

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

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

Already on GitHub? # to your account

caddytls: Add sni_regexp matcher #6569

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

vnxme
Copy link
Contributor

@vnxme vnxme commented Sep 11, 2024

This is an implementation of sni_regexp matcher requested in mholt/caddy-l4#241.

Example syntax:

{
	layer4 {
		:8443 {
			@test tls sni_regexp ^(one|two)\\.example\\.com$
			route @test {
				proxy {tls.regexp.1}.internal:443
			}
		}
	}
}

Disclaimer: I haven't tested it extensively, so it's subject to feedback of the requestors.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for this contribution!

@mholt mholt merged commit 2d12fb7 into caddyserver:master Sep 12, 2024
30 of 33 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants