Documentation ¶
Overview ¶
Package optls lets you accept TLS and unencrypted connections on the same port.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
Listen creates a listener accepting connections on the given network address using net.Listen.
func NewListener ¶
NewListener creates a listener which accepts connections from an inner net.Listener. If config is valid, and the client sends a ClientHello message, the connection is wrapped with a tls.Server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.