Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
TLS crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Weichhold committed Jan 12, 2022
1 parent 27b39ef commit bdf051d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Miningcore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -825,10 +825,10 @@ private static void ConfigurePostgres(PostgresConfig pgConfig, ContainerBuilder
{
connectionString.Append("SSL Mode=Require;");

if(!string.IsNullOrEmpty(pgConfig.TlsCert.Trim()))
if(!string.IsNullOrEmpty(pgConfig.TlsCert?.Trim()))
connectionString.Append($"SSL Certificate={pgConfig.TlsCert.Trim()};");

if(!string.IsNullOrEmpty(pgConfig.TlsKey.Trim()))
if(!string.IsNullOrEmpty(pgConfig.TlsKey?.Trim()))
connectionString.Append($"SSL Key={pgConfig.TlsKey.Trim()};");

if(!string.IsNullOrEmpty(pgConfig.TlsPassword))
Expand Down

0 comments on commit bdf051d

Please sign in to comment.