Merge pull request 'Fix broken RSA' (#16) from working into main
Docker Build and Release Upload / build (push) Successful in 1m19s

Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
2025-08-01 01:47:19 +00:00
+1 -2
View File
@@ -93,10 +93,9 @@ using (HttpClient client = new HttpClient()) {
HttpResponseMessage PublicKeyResponse = await client.GetAsync("https://auth.mistox.com/api/auth/publickey");
if (PublicKeyResponse.IsSuccessStatusCode) {
string publicKey = await PublicKeyResponse.Content.ReadAsStringAsync();
using (RSA rsa = RSA.Create()) {
RSA rsa = RSA.Create();
rsa.ImportFromPem(publicKey);
PublicKey = new RsaSecurityKey(rsa);
}
} else {
await Task.Delay(2000); // sleep the main thread for 2 seconds before sending another request. Prevent DDOS of my own equiptment
}