File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1545,6 +1545,10 @@ TClientContext CreateClientContext(
1545
1545
context.ServerName = Format (" tvm.%v" , context.ServerName );
1546
1546
}
1547
1547
1548
+ if (options.ProxyRole_ ) {
1549
+ context.Config ->Hosts = " hosts?role=" + *options.ProxyRole_ ;
1550
+ }
1551
+
1548
1552
if (context.UseTLS || options.UseCoreHttpClient_ ) {
1549
1553
context.HttpClient = NHttpClient::CreateCoreHttpClient (context.UseTLS , context.Config );
1550
1554
} else {
Original file line number Diff line number Diff line change @@ -1118,6 +1118,9 @@ struct TCreateClientOptions
1118
1118
1119
1119
// / @brief Proxy Address to be used for connection
1120
1120
FLUENT_FIELD_OPTION (TString, ProxyAddress);
1121
+
1122
+ // / @brief Desired proxy role to be used for connection.
1123
+ FLUENT_FIELD_OPTION (TString, ProxyRole);
1121
1124
};
1122
1125
1123
1126
// /
You can’t perform that action at this time.
0 commit comments