Skip to content

Commit

Permalink
Check request protocol inbound allowed value (#635)
Browse files Browse the repository at this point in the history
* Check request protocol inbound allowed value

* PR link
  • Loading branch information
tomaka authored May 29, 2023
1 parent e0accad commit b4eb454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/libp2p/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,7 @@ where
.request_response_protocols
.iter()
.enumerate()
.filter(|(_, p)| p.inbound_allowed)
.find(|(_, p)| p.name == protocol_name)
{
self.messages_to_connections.push_back((
Expand Down
4 changes: 4 additions & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- The parameter of `chainHead_unstable_follow` has been renamed from `runtimeUpdates` to `withRuntime` in accordance with the latest JSON-RPC specification changes. ([#624](https://github.com/smol-dot/smoldot/pull/624))

### Fixed

- Fix panic when receiving a networking request of a protocol not supported by smoldot. ([#635](https://github.com/smol-dot/smoldot/pull/635))

## 1.0.7 - 2023-05-25

### Fixed
Expand Down

0 comments on commit b4eb454

Please sign in to comment.