mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-25 17:04:22 +01:00
fix(pubky): return error if resolve_endpoint couldn't find non Pkarr domain
This commit is contained in:
@@ -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!(
|
||||
"{}://{}",
|
||||
|
||||
Reference in New Issue
Block a user