Add uTLS client

This commit is contained in:
世界
2022-09-10 10:27:00 +08:00
parent 3ad4370fa5
commit 2f437a0382
15 changed files with 331 additions and 44 deletions

12
common/tls/server.go Normal file
View File

@@ -0,0 +1,12 @@
package tls
import (
"context"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing-box/option"
)
func NewServer(ctx context.Context, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) {
return newSTDServer(ctx, logger, options)
}