mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 22:13:50 +02:00
Fix check and use 256 bit
This commit is contained in:
parent
0b299619ff
commit
263312dc7b
4 changed files with 9 additions and 7 deletions
|
@ -78,7 +78,7 @@ func (h *Handler) Process(ctx context.Context) error {
|
|||
|
||||
switch pt {
|
||||
case PKT_TYPE_HANDSHAKE_REQUEST:
|
||||
log.Printf("Handshake")
|
||||
log.Printf("Client handshake from %s", client.GetClientIp(ctx))
|
||||
if h.State != SERVER_STATE_INITIAL {
|
||||
log.Printf("Handshake attempted while in wrong state %d != %d", h.State, SERVER_STATE_INITIAL)
|
||||
return errors.New("wrong state")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue