Add uTLS support for shadowtls

This commit is contained in:
世界
2023-02-21 20:42:44 +08:00
parent 6fb673aee4
commit 0188c2d67d
10 changed files with 55 additions and 31 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
type customClientKey struct{}
type CustomClientFunc func(conn net.Conn, config *tls.Config) net.Conn
type CustomClientFunc func(conn net.Conn, xrayConfig *Config, config *tls.Config) net.Conn
func CustomClientFromContext(ctx context.Context) (CustomClientFunc, bool) {
client, loaded := ctx.Value(customClientKey{}).(CustomClientFunc)