Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/envoy/network/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ class Connection : public Event::DeferredDeletable, public FilterManager {
*/
virtual const Ssl::Connection* ssl() const PURE;

/**
* @return requested server name (e.g. SNI in TLS), if any.
*/
virtual absl::string_view requestedServerName() const PURE;

/**
* @return State the current state of the connection.
*/
Expand Down
1 change: 1 addition & 0 deletions source/common/network/connection_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class ConnectionImpl : public virtual Connection,
const ConnectionSocket::OptionsSharedPtr& socketOptions() const override {
return socket_->options();
}
absl::string_view requestedServerName() const override { return socket_->requestedServerName(); }

// Network::BufferSource
BufferSource::StreamBuffer getReadBuffer() override { return {read_buffer_, read_end_stream_}; }
Expand Down
Loading