Skip to content

Commit

Permalink
add restricted flag
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 3, 2021
1 parent 697c7eb commit 1092f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birdrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
log.Printf("using bird path: %s\n", *birdPath)

ssh.Handle(func(s ssh.Session) {
cmd := exec.Command(*birdPath)
cmd := exec.Command(*birdPath, "-r") // -r flag for restricted mode
ptyReq, winCh, isPty := s.Pty()
if isPty {
cmd.Env = append(cmd.Env, fmt.Sprintf("TERM=%s", ptyReq.Term))
Expand Down

0 comments on commit 1092f05

Please sign in to comment.