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(
14281428 }
14291429
14301430 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);
14331439 YdbDriver.Reset (new NYdb::TDriver (driverConfig));
14341440 AppData->YdbDriver = YdbDriver.Get ();
14351441 }
You can’t perform that action at this time.
0 commit comments