mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-27 05:59:49 +00:00
Make using insecure connections opt-in (#1309)
* add insecure url checks * rename variables * add feature flags to expose Url properly * fix test compile error * fix feature errors * remove comment * add url crate and use it for url parsing * fix compile errors * satisfy the holy clippy * fix typos and host loopback * macro attribute, provide validation function in utils * fix expected output of ui tests * remove the success case for --allow-insecure because we cannot establish ws:// connection at the moment.
This commit is contained in:
1 parent
5b35a9f849
commit
7f714cbcb9
22 files changed
+562
-413
No files matched your search
@@ -115,6 +115,9 @@ pub enum RpcError {
|
||||
/// The RPC subscription dropped.
|
||||
#[error("RPC error: subscription dropped.")]
|
||||
SubscriptionDropped,
|
||||
/// The requested URL is insecure.
|
||||
#[error("RPC error: insecure URL: {0}")]
|
||||
InsecureUrl(String),
|
||||
}
|
||||
|
||||
impl RpcError {
|
||||
|
||||
Reference in new issue
Block a user