sni

package
v0.0.0-...-198281b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerNameFromBytes

func ServerNameFromBytes(data []byte) (sn string, err error)

func ServerNameFromConn

func ServerNameFromConn(c net.Conn) (string, net.Conn, error)

Uses SNI to get the name of the server from the connection. Returns the ServerName and a buffered connection that will not have been read off of.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL