diff options
author | molotkov-and <[email protected]> | 2023-03-09 18:00:50 +0300 |
---|---|---|
committer | molotkov-and <[email protected]> | 2023-03-09 18:00:50 +0300 |
commit | f326eae084b484a7c38d44318e3e5de9ef23dfa6 (patch) | |
tree | 1f3c257d7759a82572137a344a12156b3b7a8b29 /library/cpp/actors/http/http_proxy.cpp | |
parent | 7d3614a719ab373119c4446eb060cdde89f80601 (diff) |
Add SSL_set_tlsext_host_name ssl option
Diffstat (limited to 'library/cpp/actors/http/http_proxy.cpp')
-rw-r--r-- | library/cpp/actors/http/http_proxy.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/cpp/actors/http/http_proxy.cpp b/library/cpp/actors/http/http_proxy.cpp index 0fbdb6d4882..ea7792ef813 100644 --- a/library/cpp/actors/http/http_proxy.cpp +++ b/library/cpp/actors/http/http_proxy.cpp @@ -14,8 +14,8 @@ public: return listeningSocket; } - IActor* AddOutgoingConnection(const TString& address, bool secure, const NActors::TActorContext& ctx) { - IActor* connectionSocket = CreateOutgoingConnectionActor(ctx.SelfID, address, secure, Poller); + IActor* AddOutgoingConnection(bool secure, const NActors::TActorContext& ctx) { + IActor* connectionSocket = CreateOutgoingConnectionActor(ctx.SelfID, secure, Poller); TActorId connectionId = ctx.Register(connectionSocket); Connections.emplace(connectionId); return connectionSocket; @@ -97,9 +97,8 @@ protected: } void Handle(TEvHttpProxy::TEvHttpOutgoingRequest::TPtr event, const NActors::TActorContext& ctx) { - TStringBuf host(event->Get()->Request->Host); bool secure(event->Get()->Request->Secure); - NActors::IActor* actor = AddOutgoingConnection(TString(host), secure, ctx); + NActors::IActor* actor = AddOutgoingConnection(secure, ctx); ctx.Send(event->Forward(actor->SelfId())); } |