diff options
author | denvr <denvr@yandex-team.com> | 2023-10-05 18:44:53 +0300 |
---|---|---|
committer | denvr <denvr@yandex-team.com> | 2023-10-05 19:40:32 +0300 |
commit | d88f74d6fb31cb53b756b784efd505222c7f4b5f (patch) | |
tree | 36ae12ac24dec8bf13195ff11e65d6469622c998 | |
parent | fe2da83225eb66313b67b744c8b692443d30abc3 (diff) | |
download | ydb-d88f74d6fb31cb53b756b784efd505222c7f4b5f.tar.gz |
YT-19982 - rpc https - style
-rw-r--r-- | yt/yt/client/api/rpc_proxy/connection_impl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt/yt/client/api/rpc_proxy/connection_impl.cpp b/yt/yt/client/api/rpc_proxy/connection_impl.cpp index 7783dd9533f..11621ea7071 100644 --- a/yt/yt/client/api/rpc_proxy/connection_impl.cpp +++ b/yt/yt/client/api/rpc_proxy/connection_impl.cpp @@ -51,9 +51,9 @@ using namespace NServiceDiscovery; //////////////////////////////////////////////////////////////////////////////// -const TStringBuf ProxyUrlCanonicalHttpPrefix = "http://"; -const TStringBuf ProxyUrlCanonicalHttpsPrefix = "https://"; -const TStringBuf ProxyUrlCanonicalSuffix = ".yt.yandex.net"; +static const TStringBuf ProxyUrlCanonicalHttpPrefix = "http://"; +static const TStringBuf ProxyUrlCanonicalHttpsPrefix = "https://"; +static const TStringBuf ProxyUrlCanonicalSuffix = ".yt.yandex.net"; //////////////////////////////////////////////////////////////////////////////// @@ -98,13 +98,13 @@ TString NormalizeHttpProxyUrl(TString url, const std::optional<THashMap<TString, return url; } +namespace { + bool IsProxyUrlSecure(const TString& url) { return url.StartsWith(ProxyUrlCanonicalHttpsPrefix); } -namespace { - TString MakeConnectionLoggingTag(const TConnectionConfigPtr& config, TGuid connectionId) { TStringBuilder builder; |