Skip to content

Commit

Permalink
Merge pull request #23 from alfrunes/master
Browse files Browse the repository at this point in the history
Inform session if terminal feature is enabled
  • Loading branch information
tranchitella committed Mar 17, 2021
2 parents 3080fd1 + 86ea2cf commit 3da9357
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ func NewDaemon(conf *config.MenderShellConfig) *MenderShellDaemon {

// Setup ProtoMsg routes.
routes := make(session.ProtoRoutes)
if !conf.Terminal.Disable {
// Shell message is not handled by the Session, but the map
// entry must be set to give the correct 'accept' response.
routes[ws.ProtoTypeShell] = nil
}
if !conf.FileTransfer.Disable {
routes[ws.ProtoTypeFileTransfer] = session.FileTransfer()
}
Expand Down

0 comments on commit 3da9357

Please sign in to comment.