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