File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1428,8 +1428,14 @@ void TKikimrRunner::InitializeActorSystem(
1428
1428
}
1429
1429
1430
1430
if (runConfig.AppConfig .HasGRpcConfig ()) {
1431
- if (const ui32 grpcPort = runConfig.AppConfig .GetGRpcConfig ().GetPort ()) {
1432
- auto driverConfig = NYdb::TDriverConfig ().SetEndpoint (TStringBuilder () << " localhost:" << grpcPort);
1431
+ ui32 port = runConfig.AppConfig .GetGRpcConfig ().GetPort ();
1432
+
1433
+ if (!port) {
1434
+ port = runConfig.AppConfig .GetGRpcConfig ().GetSslPort ();
1435
+ }
1436
+
1437
+ if (port) {
1438
+ auto driverConfig = NYdb::TDriverConfig ().SetEndpoint (TStringBuilder () << " localhost:" << port);
1433
1439
YdbDriver.Reset (new NYdb::TDriver (driverConfig));
1434
1440
AppData->YdbDriver = YdbDriver.Get ();
1435
1441
}
You can’t perform that action at this time.
0 commit comments