You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "cmcfarlen (via GitHub)" <gi...@apache.org> on 2023/04/14 13:09:27 UTC

[GitHub] [trafficserver] cmcfarlen commented on a diff in pull request #9594: Add support for tunnel route config that has both match group and port variable

cmcfarlen commented on code in PR #9594:
URL: https://github.com/apache/trafficserver/pull/9594#discussion_r1166814349


##########
doc/admin-guide/files/sni.yaml.en.rst:
##########
@@ -176,6 +176,8 @@ tunnel_route              Inbound   Destination as an FQDN and port, separated b
                                     Protocol <proxy-protocol>` for more information on Proxy Protocol and how it is
                                     configured for |TS|.
 
+                                    Note that the match group number can be used in combination with the ``{inbound_local_port}`` and ``{proxy_protocol_port}`` literal strings.
+

Review Comment:
   The code and this comment don't seem to agree.  The code is such that only one of `{inbound_local_port}` or `{proxy_protocol_port}` will be used with `{inbound_local_port}` taking precedence.  If both are specified, the `{proxy_protocol_port}` function is not run at all.  I recommend address this in the documentation and better handle the case where both strings are present (warning or error).  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org