Update pkg/tcpproxy/tcp.go

Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
Chotiwat Chawannakul 2024-10-31 01:32:31 -07:00 committed by GitHub
parent 1069c21677
commit 43bc60e4d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,6 @@ func (p *TCPProxy) Get(host string) *TCPServer {
// and open a connection to the passthrough server. // and open a connection to the passthrough server.
func (p *TCPProxy) Handle(conn net.Conn) { func (p *TCPProxy) Handle(conn net.Conn) {
defer conn.Close() defer conn.Close()
// [Documentation by @maxl99](https://github.com/kubernetes/ingress-nginx/pull/11843/files#diff-aef3e187fd37c68706ad582d7b89a2d9ad11691bd929a2158b86f93362244105R67-R79)
// It appears that the ClientHello must fit into *one* TLSPlaintext message: // It appears that the ClientHello must fit into *one* TLSPlaintext message:
// When a client first connects to a server, it is REQUIRED to send the ClientHello as its first TLS message. // When a client first connects to a server, it is REQUIRED to send the ClientHello as its first TLS message.
// Source: https://datatracker.ietf.org/doc/html/rfc8446#section-4.1.2 // Source: https://datatracker.ietf.org/doc/html/rfc8446#section-4.1.2