Add ShadowTLS protocol v3

This commit is contained in:
世界
2023-02-18 14:55:47 +08:00
committed by GitHub
parent 894c902609
commit 88f47d2469
53 changed files with 23127 additions and 229 deletions

View File

@@ -10,8 +10,9 @@ import (
)
type (
STDConfig = tls.Config
STDConn = tls.Conn
STDConfig = tls.Config
STDConn = tls.Conn
ConnectionState = tls.ConnectionState
)
type Config interface {
@@ -33,7 +34,7 @@ type ServerConfig interface {
type Conn interface {
net.Conn
HandshakeContext(ctx context.Context) error
ConnectionState() tls.ConnectionState
ConnectionState() ConnectionState
}
func ParseTLSVersion(version string) (uint16, error) {