maskit commented on a change in pull request #7015:
URL: https://github.com/apache/trafficserver/pull/7015#discussion_r456861114



##########
File path: src/traffic_server/InkAPI.cc
##########
@@ -6563,6 +6563,15 @@ TSVConnSslCurveGet(TSVConn sslp)
   return ssl_vc ? ssl_vc->getSSLCurve() : nullptr;
 }
 
+const char *
+TSVConnSslServerNameGet(TSVConn sslp)
+{
+  NetVConnection *vc        = reinterpret_cast<NetVConnection *>(sslp);
+  SSLNetVConnection *ssl_vc = dynamic_cast<SSLNetVConnection *>(vc);

Review comment:
       We don't need this cast since `get_server_name` is defined in 
NetVConnection, and UnixNetVC returns `nullptr`. QUICNetVC currently returns 
`nullptr` and will return a server name.




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