mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-29 20:11:27 +00:00
18 lines
392 B
Go
18 lines
392 B
Go
|
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.")
|
||
|
}))
|
||
|
}
|