SolidWallOfCode commented on a change in pull request #7023:
URL: https://github.com/apache/trafficserver/pull/7023#discussion_r500321510



##########
File path: src/traffic_server/InkAPI.cc
##########
@@ -9790,6 +9791,54 @@ TSHttpTxnRedoCacheLookup(TSHttpTxn txnp, const char 
*url, int length)
   return TS_ERROR;
 }
 
+TSReturnCode
+TSHostnameIsSelf(const char *hostname)
+{
+  const bool isSelf = Machine::instance()->is_self(hostname);

Review comment:
       ```
   return Machine::instance()->is_self(hostname) ? TS_SUCCESS : TS_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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to