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

Commit

Permalink
replace escaped new line in cert loader
Browse files Browse the repository at this point in the history
  • Loading branch information
dkackman committed Nov 19, 2023
1 parent 7b88613 commit 3dc3795
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Web2Gateway/ChiaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ private EndpointInfo GetDataLayerEndpoint()
return new EndpointInfo()
{
Uri = new Uri(dataLayerUri),
Cert = _configuration.GetValue("data_layer_cert", "")!,
Key = _configuration.GetValue("data_layer_key", "")!
// when stored in an environment variable the newlines might be escaped
Cert = _configuration.GetValue("data_layer_cert", "")!.Replace("\\n", "\n"),
Key = _configuration.GetValue("data_layer_key", "")!.Replace("\\n", "\n")
};
}

Expand Down

0 comments on commit 3dc3795

Please sign in to comment.