fix(pubky): return error if resolve_endpoint couldn't find non Pkarr domain

This commit is contained in:
nazeh
2024-08-28 20:39:32 +03:00
parent 892d5b2d9a
commit 8118e94430

View File

@@ -137,6 +137,10 @@ impl PubkyClient {
}
}
if PublicKey::try_from(origin.as_str()).is_ok() {
return Err(Error::ResolveEndpoint(original_target.into()));
}
if let Some(public_key) = endpoint_public_key {
let url = Url::parse(&format!(
"{}://{}",