mirror of
https://github.com/XTLS/REALITY.git
synced 2025-08-22 14:38:35 +00:00
Fix missing config.Show check
This commit is contained in:
parent
50752aec6b
commit
448c984cf3
2
tls.go
2
tls.go
@ -385,8 +385,10 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
|
||||
postHandshakeRecord := hs.c.out.cipher.(aead).Seal(plainText[:5], hs.c.out.seq[:], plainText[5:], plainText[:5])
|
||||
hs.c.out.incSeq()
|
||||
hs.c.write(postHandshakeRecord)
|
||||
if config.Show {
|
||||
fmt.Printf("REALITY remoteAddr: %v\tlen(postHandshakeRecord): %v\n", remoteAddr, len(postHandshakeRecord))
|
||||
}
|
||||
}
|
||||
hs.c.isHandshakeComplete.Store(true)
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user