mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 16:36:17 +02:00
Add white list for "Stream.AddStream"
This commit is contained in:
parent
ceb108b338
commit
be266c07ce
3 changed files with 13 additions and 11 deletions
|
@ -484,8 +484,8 @@ See [Plugin.Stream.Player.SetProperty](stream_plugin.md#pluginstreamplayersetpro
|
|||
|
||||
### Stream.AddStream
|
||||
|
||||
Note: for security purposes, we don't allow adding `process` streams.
|
||||
We also don't allow setting the `controlscript` query parameter of streamUri.
|
||||
Note: For security purposes, the RPC interface allows only adding streams of these types: `pipe`, `file`, `tcp`, `alsa`, `jack` and `meta`.
|
||||
It is also not allowed to set the `controlscript` query parameter of `streamUri`.
|
||||
|
||||
#### Request
|
||||
|
||||
|
@ -513,7 +513,6 @@ We also don't allow setting the `controlscript` query parameter of streamUri.
|
|||
{"id":8,"jsonrpc":"2.0","result":{"stream_id":"stream 2"}}
|
||||
```
|
||||
|
||||
|
||||
##### Error
|
||||
|
||||
```json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue