diff options
Diffstat (limited to 'yt/cpp/mapreduce/client/client.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/client/client.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp index 4548577834e..caa0ab270c4 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); } |
