mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 14:03:50 +02:00
Clean up
This commit is contained in:
parent
a01ee3444e
commit
2822dc8dd1
2 changed files with 0 additions and 4 deletions
|
@ -66,7 +66,6 @@ func (s *Server) Process(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
log.Printf("%x", pkt)
|
||||
switch pt {
|
||||
case PKT_TYPE_HANDSHAKE_REQUEST:
|
||||
log.Printf("Client handshakeRequest from %s", common.GetClientIp(ctx))
|
||||
|
@ -142,7 +141,6 @@ func (s *Server) Process(ctx context.Context) error {
|
|||
go forward(s.Remote, s.Session.TransportOut)
|
||||
s.State = SERVER_STATE_CHANNEL_CREATE
|
||||
case PKT_TYPE_DATA:
|
||||
log.Printf("Data received")
|
||||
if s.State < SERVER_STATE_CHANNEL_CREATE {
|
||||
log.Printf("Data received while in wrong state %d != %d", s.State, SERVER_STATE_CHANNEL_CREATE)
|
||||
return errors.New("wrong state")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue