mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-02 21:37:33 +00:00
refactor: Clean up acquire_keys_as_notary
This commit is contained in:
1 parent
5e971aef3c
commit
a31cbce31e
3 files changed
+135
-173
No files matched your search
@@ -224,7 +224,7 @@ impl Service {
|
||||
/// when acting as a notary server. This limits origin lookups to once per
|
||||
/// minute, which prevents amplification attacks.
|
||||
#[must_use]
|
||||
pub fn notary_may_contact_origin(&self, server_name: &ServerName) -> bool {
|
||||
pub fn origin_not_contacted_recently(&self, server_name: &ServerName) -> bool {
|
||||
if server_name == self.services.server.name {
|
||||
// We always intercept origin requests to us with
|
||||
// build_server_keys_response, so this is equivalent to
|
||||
|
||||
Reference in new issue
Block a user