2022-09-10 02:27:00 +00:00
|
|
|
//go:build !with_utls
|
|
|
|
|
|
|
|
package tls
|
|
|
|
|
|
|
|
import (
|
2023-08-29 05:43:42 +00:00
|
|
|
"context"
|
|
|
|
|
2022-09-10 02:27:00 +00:00
|
|
|
"github.com/sagernet/sing-box/option"
|
|
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
|
|
)
|
|
|
|
|
2023-08-29 05:43:42 +00:00
|
|
|
func NewUTLSClient(ctx context.Context, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
|
2022-09-10 02:27:00 +00:00
|
|
|
return nil, E.New(`uTLS is not included in this build, rebuild with -tags with_utls`)
|
|
|
|
}
|
2023-02-25 08:24:08 +00:00
|
|
|
|
2023-08-29 05:43:42 +00:00
|
|
|
func NewRealityClient(ctx context.Context, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
|
2023-02-25 08:24:08 +00:00
|
|
|
return nil, E.New(`uTLS, which is required by reality client is not included in this build, rebuild with -tags with_utls`)
|
|
|
|
}
|