From 442d33ede91e2efcd5982102abc0c37c56453537 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Mon, 20 Mar 2023 15:37:27 +0000 Subject: [PATCH] Do not show ciphertext SessionID or full AuthKey --- tls.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tls.go b/tls.go index f1561a4..c6862b9 100644 --- a/tls.go +++ b/tls.go @@ -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)