mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
firewall: error back for streaming rpcs
This commit is contained in:
parent
8f2ab273bb
commit
962d6667a8
1 changed files with 6 additions and 0 deletions
|
|
@ -149,6 +149,12 @@ func (r *RuleEnforcer) Intercept(ctx context.Context,
|
|||
|
||||
// Parse incoming requests and act on them.
|
||||
case MWRequestTypeRequest:
|
||||
// Support for streaming requests is not yet implemented.
|
||||
if ri.Streaming {
|
||||
return mid.RPCErrString(req, "streaming requests not "+
|
||||
"supported")
|
||||
}
|
||||
|
||||
replacement, err := r.handleRequest(ctx, ri)
|
||||
if err != nil {
|
||||
dbErr := r.markActionErrored(ri.RequestID, err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue