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,
|
domain: str, onion_domain: str,
|
||||||
i2p_domain: str,
|
i2p_domain: str,
|
||||||
signing_priv_key_pem: str) -> str:
|
signing_priv_key_pem: str) -> str:
|
||||||
|
"""Get the public key for an actor
|
||||||
|
"""
|
||||||
if not person_url:
|
if not person_url:
|
||||||
return None
|
return None
|
||||||
person_url = person_url.replace('#main-key', '')
|
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'],
|
message_json['actor'],
|
||||||
person_cache, debug, project_version,
|
person_cache, debug, project_version,
|
||||||
curr_http_prefix,
|
curr_http_prefix,
|
||||||
domain_to_follow, onion_domain,
|
this_domain, onion_domain,
|
||||||
i2p_domain, signing_priv_key_pem):
|
i2p_domain, signing_priv_key_pem):
|
||||||
if debug:
|
if debug:
|
||||||
print('Unable to obtain following actor: ' +
|
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,
|
if not get_person_pub_key(base_dir, curr_session,
|
||||||
message_json['actor'],
|
message_json['actor'],
|
||||||
person_cache, debug, project_version,
|
person_cache, debug, project_version,
|
||||||
curr_http_prefix, domain_to_follow,
|
curr_http_prefix, this_domain,
|
||||||
onion_domain, i2p_domain,
|
onion_domain, i2p_domain,
|
||||||
signing_priv_key_pem):
|
signing_priv_key_pem):
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue