transport: add httpupgrade

This commit is contained in:
Eken Chan 2024-03-03 13:12:38 +08:00 committed by yuhan6665
parent a3f50d0f5d
commit 173b03448f
11 changed files with 524 additions and 21 deletions

View file

@ -0,0 +1,17 @@
package httpupgrade
import (
"context"
"github.com/xtls/xray-core/common"
)
//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) {
return nil, newError("httpupgrade is a transport protocol.")
}))
}