Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 714eb48

Browse files
committed
Deny system_setLogFilter RPC by default
1 parent 1906cc9 commit 714eb48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/rpc/src/system/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ impl<B: traits::Block> SystemApi<B::Hash, <B::Header as HeaderT>::Number> for Sy
199199
}
200200

201201
fn system_set_log_filter(&self, directives: String)-> std::result::Result<(), rpc::Error> {
202+
bail_if_unsafe!(self.deny_unsafe);
202203
sc_tracing::reload_filter(directives).map_err(|_e| rpc::Error::internal_error())
203204
}
204205
}

0 commit comments

Comments
 (0)