Writing an SNI Proxy in 115 Lines of Go

from blog Andrew Ayer - Blog, | ↗ original
The very first message sent in a TLS connection is the Client Hello record, in which the client greets the server and tells it, among other things, the server name it wants to connect to. This is called Server Name Indication, or SNI for short, and it's quite handy as it allows many different servers to be co-located on a single...