SolidWallOfCode commented on code in PR #10234:
URL: https://github.com/apache/trafficserver/pull/10234#discussion_r1300720516
##########
proxy/http/HttpTransact.cc:
##########
@@ -2019,7 +2014,7 @@ HttpTransact::OSDNSLookup(State *s)
// or we're locked on a plugin supplied address.
// therefore no more backtracking - return to trying the server.
TRANSACT_RETURN(how_to_open_connection(s), HttpTransact::HandleResponse);
- } else if (s->dns_info.lookup_name[0] <= '9' && s->dns_info.lookup_name[0]
>= '0' && s->parent_params->parent_table->hostMatch &&
+ } else if (ats_is_ip(&s->server_info.name_addr) &&
s->parent_params->parent_table->hostMatch &&
Review Comment:
`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]