maskit commented on code in PR #13908:
URL: https://github.com/apache/trafficserver/pull/13908#discussion_r4558729238


##########
src/iocore/net/SNIActionPerformer.cc:
##########
@@ -298,14 +303,24 @@ TunnelDestination::replace_match_groups(std::string_view 
dst, const ActionItem::
 int
 VerifyClient::SNIAction(SSL &ssl, const Context & /* ctx ATS_UNUSED */) const
 {
-  auto snis   = TLSSNISupport::getInstance(&ssl);
-  auto ssl_vc = SSLNetVCAccess(&ssl);
-
-  if (snis == nullptr || ssl_vc == nullptr) {
+  auto ssl_vc = dynamic_cast<SSLNetVConnection *>(NetVCAccess(&ssl));
+
+  if (ssl_vc == nullptr) {

Review Comment:
   We should keep `snis`. The ultimate goal is to eliminate all the dependency 
on SSLNetVC so that all SNI actions work on QUIC connections as well. We don't 
need to do achieve it on this PR, but this change (using SSLNetVC everywhere) 
goes backwards.



-- 
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