maskit commented on code in PR #13908:
URL: https://github.com/apache/trafficserver/pull/13908#discussion_r4558816713
##########
src/iocore/net/SNIActionPerformer.cc:
##########
@@ -185,9 +194,15 @@ TunnelDestination::SNIAction(SSL &ssl, const Context &ctx)
const
auto snis = TLSSNISupport::getInstance(&ssl);
auto tuns = TLSTunnelSupport::getInstance(&ssl);
auto alpns = ALPNSupport::getInstance(&ssl);
- auto ssl_netvc = SSLNetVCAccess(&ssl);
+ auto ssl_netvc = dynamic_cast<SSLNetVConnection *>(snis);
- if (snis == nullptr || tuns == nullptr || alpns == nullptr || ssl_netvc ==
nullptr) {
+ if (ssl_netvc == nullptr) {
+ // Only an SSLNetVConnection can be tunnelled, so refuse rather than serve
the name here.
+ Dbg(dbg_ctl_ssl_sni, "routing to %s needs an SSLNetVConnection - denying
connection", destination.c_str());
Review Comment:
A bit off topic, but SNI action did work on Quiche build many years ago. I
thought it still works today but apparently #9767 accidentally broke it (the
change on the PR is probably correct, but nobody realized that port number is
not set on QUIC connections).
--
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]