aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorpechatnov <pechatnov@yandex-team.com>2024-04-04 14:31:37 +0300
committerpechatnov <pechatnov@yandex-team.com>2024-04-04 14:43:17 +0300
commitb1332e374212989495df07bb57c7fcf7255fe1b2 (patch)
tree734d2a7a7df3b174b4e1b34a1d363e31189eb81d /yt
parent8ca7961c8ff183dca63ff964f6142d24df5e03e8 (diff)
downloadydb-b1332e374212989495df07bb57c7fcf7255fe1b2.tar.gz
YT: Apply aliasing rules in CreateClientImpl
Поддерживаю алиасинг урлов для функции NYT::CreateClient c111a561639e4c8fdd73d9df66f41ec29e4dbe5e
Diffstat (limited to 'yt')
-rw-r--r--yt/cpp/mapreduce/client/client.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp
index 4548577834..caa0ab270c 100644
--- a/yt/cpp/mapreduce/client/client.cpp
+++ b/yt/cpp/mapreduce/client/client.cpp
@@ -1361,6 +1361,7 @@ TClientPtr CreateClientImpl(
context.ProxyAddress = options.ProxyAddress_;
context.ServerName = serverName;
+ ApplyProxyUrlAliasingRules(context.ServerName);
if (context.ServerName.find('.') == TString::npos &&
context.ServerName.find(':') == TString::npos &&
@@ -1448,9 +1449,6 @@ IClientPtr CreateClientFromEnv(const TCreateClientOptions& options)
if (!serverName) {
ythrow yexception() << "YT_PROXY is not set";
}
-
- NDetail::ApplyProxyUrlAliasingRules(serverName);
-
return NDetail::CreateClientImpl(serverName, options);
}