mirror of https://gitlab.com/bashrc2/epicyon
Use correct user agent domain for public key lookups
parent
a51bbda2b5
commit
bef7946cbe
2
cache.py
2
cache.py
|
@ -143,6 +143,8 @@ def get_person_pub_key(base_dir: str, session, person_url: str,
|
|||
domain: str, onion_domain: str,
|
||||
i2p_domain: str,
|
||||
signing_priv_key_pem: str) -> str:
|
||||
"""Get the public key for an actor
|
||||
"""
|
||||
if not person_url:
|
||||
return None
|
||||
person_url = person_url.replace('#main-key', '')
|
||||
|
|
4
inbox.py
4
inbox.py
|
@ -4748,7 +4748,7 @@ def _receive_follow_request(session, session_onion, session_i2p,
|
|||
message_json['actor'],
|
||||
person_cache, debug, project_version,
|
||||
curr_http_prefix,
|
||||
domain_to_follow, onion_domain,
|
||||
this_domain, onion_domain,
|
||||
i2p_domain, signing_priv_key_pem):
|
||||
if debug:
|
||||
print('Unable to obtain following actor: ' +
|
||||
|
@ -4792,7 +4792,7 @@ def _receive_follow_request(session, session_onion, session_i2p,
|
|||
if not get_person_pub_key(base_dir, curr_session,
|
||||
message_json['actor'],
|
||||
person_cache, debug, project_version,
|
||||
curr_http_prefix, domain_to_follow,
|
||||
curr_http_prefix, this_domain,
|
||||
onion_domain, i2p_domain,
|
||||
signing_priv_key_pem):
|
||||
if debug:
|
||||
|
|
Loading…
Reference in New Issue