Skip to content

Commit

Permalink
fix build (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
libvoid committed Sep 20, 2023
1 parent b718e1b commit bce0a6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/bastion/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ func ChannelHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewCh
_ = ch.Close()
return
}
go func(_ *gossh.ServerConn, dbConn *gorm.DB, sessionID uint) {
go func(_ *gossh.ServerConn, sessionID uint) {
for {
sess := dbmodels.Session{
Model: gorm.Model{ID: sessionID},
Model: gorm.Model{ID: sessionID},
Status: string(dbmodels.SessionStatusActive),
}

Expand All @@ -183,7 +183,7 @@ func ChannelHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewCh
}
time.Sleep(60 * time.Second)
}
}(conn, actx.db, sess.ID)
}(conn, sess.ID)
go func() {
err = multiChannelHandler(conn, newChan, ctx, sessionConfigs, sess.ID)
if err != nil {
Expand Down

0 comments on commit bce0a6a

Please sign in to comment.