2024-06-18 08:36:36 +03:00
|
|
|
package splithttp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/xtls/xray-core/common"
|
2024-06-29 21:32:57 +03:00
|
|
|
"github.com/xtls/xray-core/common/errors"
|
2024-06-18 08:36:36 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
//go:generate go run github.com/xtls/xray-core/common/errors/errorgen
|
|
|
|
|
|
|
|
const protocolName = "splithttp"
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
2024-06-29 21:32:57 +03:00
|
|
|
return nil, errors.New("splithttp is a transport protocol.")
|
2024-06-18 08:36:36 +03:00
|
|
|
}))
|
|
|
|
}
|