SolidWallOfCode commented on a change in pull request #7467:
URL: https://github.com/apache/trafficserver/pull/7467#discussion_r576925898
##########
File path: include/ts/ts.h
##########
@@ -2641,6 +2648,27 @@ tsapi TSReturnCode TSHttpTxnClientStreamIdGet(TSHttpTxn
txnp, uint64_t *stream_i
*/
tsapi TSReturnCode TSHttpTxnClientStreamPriorityGet(TSHttpTxn txnp,
TSHttpPriority *priority);
+/*
+ * Returns TS_SUCCESS if hostname is this machine, as used for parent and
remap self-detection.
+ * Returns TS_ERROR if hostname is not this machine.
+ */
+tsapi TSReturnCode TSHostnameIsSelf(const char *hostname);
Review comment:
Add a `length`, don't require a C-string.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]