Do not show ciphertext SessionID or full AuthKey

This commit is contained in:
RPRX
2023-03-20 15:37:27 +00:00
committed by GitHub
parent 0d0713b108
commit 442d33ede9
+1 -2
View File
@@ -220,8 +220,7 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
break
}
if config.Show {
fmt.Printf("REALITY remoteAddr: %v\ths.clientHello.sessionId: %v\n", remoteAddr, hs.clientHello.sessionId)
fmt.Printf("REALITY remoteAddr: %v\ths.c.AuthKey: %v\n", remoteAddr, hs.c.AuthKey)
fmt.Printf("REALITY remoteAddr: %v\ths.c.AuthKey[:16]: %v\n", remoteAddr, hs.c.AuthKey[:16])
}
block, _ := aes.NewCipher(hs.c.AuthKey)
aead, _ := cipher.NewGCM(block)