0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Fix HTTPUpgrade init

This commit is contained in:
风扇滑翔翼
2024-04-07 15:53:34 +00:00
committed by yuhan6665
parent 548646fb06
commit 021868afca
2 changed files with 13 additions and 0 deletions

View File

@ -58,6 +58,8 @@ func RegisterProtocolConfigCreator(name string, creator ConfigCreator) error {
return nil
}
// Note: Each new transport needs to add init() func in transport/internet/xxx/config.go
// Otherwise, it will cause #3244
func CreateTransportConfig(name string) (interface{}, error) {
creator, ok := globalTransportConfigCreatorCache[name]
if !ok {