sing-box/common/tls/ech_stub.go

20 lines
587 B
Go
Raw Normal View History

2022-09-10 10:27:00 +08:00
//go:build !with_ech
package tls
import (
2023-08-29 13:43:42 +08:00
"context"
"github.com/sagernet/sing-box/log"
2022-09-10 10:27:00 +08:00
"github.com/sagernet/sing-box/option"
E "github.com/sagernet/sing/common/exceptions"
)
2023-08-29 13:43:42 +08:00
func NewECHServer(ctx context.Context, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) {
return nil, E.New(`ECH is not included in this build, rebuild with -tags with_ech`)
}
func NewECHClient(ctx context.Context, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
2022-09-10 10:27:00 +08:00
return nil, E.New(`ECH is not included in this build, rebuild with -tags with_ech`)
}