Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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.

2 participants