Skip to content

Commit

Permalink
perf: send required error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Dec 9, 2024
1 parent a960f35 commit 88e4912
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/tunnel/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ func (t *Connection) Run(ctx *gin.Context) (err error) {
msg := fmt.Sprintf("required: %s", strings.Join(instruction.Args, ","))
logger.Infof("Session[%s] receive guacamole server required: %s", t, msg)
requiredErr = guacd.NewInstruction(guacd.InstructionServerError, msg)
logger.Errorf("Session[%s] send guacamole server required err: %s", t,
requiredErr.String())
_ = t.writeWsMessage([]byte(requiredErr.String()))
requiredErr = guacd.Instruction{}
continue
default:
noNopTime = time.Now()
}
Expand Down

0 comments on commit 88e4912

Please sign in to comment.