mirror of https://github.com/status-im/consul.git
tls: define wrapper type
This commit is contained in:
parent
9a2f04ea73
commit
6b2390833d
|
@ -9,6 +9,10 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// Wrapper is a function that is used to wrap a non-TLS connection
|
||||
// and returns an appropriate TLS connection or error
|
||||
type Wrapper func(net.Conn) (net.Conn, error)
|
||||
|
||||
// Config used to create tls.Config
|
||||
type Config struct {
|
||||
// VerifyIncoming is used to verify the authenticity of incoming connections.
|
||||
|
|
Loading…
Reference in New Issue