When enableTrace is configured, node does not show the correct TLS protocol.
nodejs shows tls1.2, while wireshark shows 1.3 (and wireshark is showing the correct one)
-- -- (master origin)
~/dev/curl/sample (💃 ) node app.js
Sent Record
Header:
Version = TLS 1.0 (0x301)
Content Type = Handshake (22)
Length = 236
ClientHello, Length=232
client_version=0x303 (TLS 1.2)
Random:
gmt_unix_time=0xAFAB92C9
random_bytes (len=28): 3F4E6CC15602951A8236C732E7E2E188E5B427A6797D67FDBB9FE01E
session_id (len=32): BEA460F6C1ADD6AA33D66B7CFC5ED0CF2D37374859FA3E73D209768ABA9149CD
cipher_suites (len=12)
...............
Received Record
Header:
Version = TLS 1.2 (0x303)
Content Type = ApplicationData (23)
Length = 16401
Inner Content Type = ApplicationData (23)
Received Record
Header:
Version = TLS 1.2 (0x303)
Content Type = ApplicationData (23)
Length = 15504
Inner Content Type = ApplicationData (23)
Sent Record
Header:
Version = TLS 1.2 (0x303)
Content Type = ApplicationData (23)
Length = 19
Inner Content Type = Alert (21)
Level=warning(1), description=close notify(0)
Received Record
Header:
Version = TLS 1.2 (0x303)
Content Type = ApplicationData (23)
Length = 19
Inner Content Type = Alert (21)
Level=warning(1), description=close notify(0)
-- -- (master origin)
~/dev/curl/sample (💃 ) node -v
v14.15.1
-- -- (master origin)
~/dev/curl/sample (💃 ) ping www.cdn77.com
PING 1669655317.rsc.cdn77.org (89.187.164.10): 56 data bytes
64 bytes from 89.187.164.10: icmp_seq=0 ttl=56 time=14.569 ms
^C
--- 1669655317.rsc.cdn77.org ping statistics ---
2 packets transmitted, 1 packets received, 50.0% packet loss
round-trip min/avg/max/stddev = 14.569/14.569/14.569/0.000 ms
For the same request above, here is the wireshark pcap: (remove the .txt first)
tls13.pcapng.txt
When enableTrace is configured, node does not show the correct TLS protocol. nodejs shows tls1.2, while wireshark shows 1.3 (and wireshark is showing the correct one)
For the same request above, here is the wireshark pcap: (remove the .txt first) tls13.pcapng.txt
screen from wireshark :![image](https://user-images.githubusercontent.com/24717424/100905872-283cb680-348e-11eb-9076-f8aa23d3533b.png)
app.js to demo the problem.
-->