SolidWallOfCode commented on code in PR #10234:
URL: https://github.com/apache/trafficserver/pull/10234#discussion_r1300713624


##########
proxy/http/HttpTransact.cc:
##########
@@ -1588,9 +1588,7 @@ HttpTransact::HandleRequest(State *s)
 
   // if ip in url or cop test page, not do srv lookup.
   if (s->txn_conf->srv_enabled) {
-    IpEndpoint addr;
-    ats_ip_pton(s->server_info.name, &addr);
-    s->my_txn_conf().srv_enabled = !ats_is_ip(&addr);
+    s->my_txn_conf().srv_enabled = !ats_is_ip(&s->server_info.name_addr);

Review Comment:
   ```
   s->my_txn_conf().srv_enabled = 
!swoc::IPAddr(&s->server_info.name_addr).is_valid();
   ```



-- 
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: [email protected]

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

Reply via email to