optls

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT-0 Imports: 5 Imported by: 0

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

func Listen(network, address string, config *tls.Config) (net.Listener, error)

Listen creates a listener accepting connections on the given network address using net.Listen.

func NewListener

func NewListener(inner net.Listener, config *tls.Config) net.Listener

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.

Jump to

Keyboard shortcuts

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