Skip to content

Commit

Permalink
hotfix loading accepted keys from build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed Dec 12, 2024
1 parent 758a4d6 commit 6e035b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Obsidian/Plugins/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public PluginManager(IServiceProvider serverProvider, IServer server,
public async Task LoadPluginsAsync()
{
//TODO talk about what format we should support
var acceptedKeyFiles = Directory.GetFiles("accepted_keys");
// get directory surrent dll is in
var acceptedKeysPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "accepted_keys");
var acceptedKeyFiles = Directory.GetFiles(acceptedKeysPath);

using var rsa = RSA.Create();
foreach (var certFile in acceptedKeyFiles)
Expand Down

0 comments on commit 6e035b0

Please sign in to comment.