Skip to content
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

Dynamic server support for the destination #190

Merged
merged 2 commits into from
May 22, 2024
Merged

Dynamic server support for the destination #190

merged 2 commits into from
May 22, 2024

Conversation

umputun
Copy link
Owner

@umputun umputun commented May 22, 2024

see #189

Basically, it allows the use of $host and ${host} placeholders for the destination. The actual host replaces these placeholders by the discovery service match.

A host substitution functionality has been added to the match logic for the MTProxy match type. This allows for more flexible routing rules, enabling the replacement of "$host" and "${host}" placeholders in the destination URL with the server name, before performing the regex match. Updated corresponding tests to reflect this change.

make additional test without host substitution

add test with ${host} substitution
suppress false postive linter warns
@umputun umputun merged commit d3bbec8 into master May 22, 2024
2 checks passed
@umputun umputun deleted the dynamic-server branch May 22, 2024 03:51
umputun added a commit that referenced this pull request May 22, 2024
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.

1 participant