Skip to content

Commit

Permalink
Merge pull request #274 from LiamMorrow/add-trust-anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow authored Sep 22, 2024
2 parents 01c6956 + bc25df4 commit 96d7a04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
<base-config>
<trust-anchors>
<!-- Trust preinstalled CAs -->
<certificates src="system" />
<!-- Additionaly trusted user added CAs -->
<certificates src="user"/>
</trust-anchors>
</base-config>
</network-security-config>
9 changes: 8 additions & 1 deletion LiftLog.Ui/Store/Settings/SettingsEffects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,25 @@ public async Task ExecuteRemoteBackup(ExecuteRemoteBackupAction action, IDispatc
}
catch (HttpRequestException ex) when (ex.StatusCode is null)
{
logger.LogWarning(ex, "Failed to backup data to remote server [connection failure]");
dispatcher.Dispatch(
new ToastAction("Failed to backup data to remote server [connection failure]")
);
}
catch (HttpRequestException ex)
{
logger.LogWarning(
ex,
"Failed to backup data to remote server [{StatusCode}]",
ex.StatusCode
);
dispatcher.Dispatch(
new ToastAction("Failed to backup data to remote server [" + ex.StatusCode + "]")
);
}
catch
catch (Exception ex)
{
logger.LogWarning(ex, "Failed to backup data to remote server [unknown]");
dispatcher.Dispatch(
new ToastAction("Failed to backup data to remote server [unknown]")
);
Expand Down

0 comments on commit 96d7a04

Please sign in to comment.