1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fixed processing none security subscription

This commit is contained in:
Shelikhoo 2023-11-25 17:08:28 +00:00 committed by Xiaokang Wang (Shelikhoo)
parent f112667190
commit a07572822a

View File

@ -55,7 +55,7 @@ func (p *OutboundParser) toAbstractServerSpec(config *OutboundConfig) (*ServerCo
}
serverConfig.TransportSettings = serial.ToTypedMessage(transportSettings)
}
{
if config.StreamSetting.Security != "none" {
securitySettings, err := loadHeterogeneousConfigFromRawJSONRestricted(
"security", config.StreamSetting.Security, config.StreamSetting.SecuritySettings)
if err != nil {
@ -72,7 +72,7 @@ func (p *OutboundParser) toAbstractServerSpec(config *OutboundConfig) (*ServerCo
func (p *OutboundParser) ToSubscriptionServerConfig(config *OutboundConfig) (*SubscriptionServerConfig, error) {
serverSpec, err := p.toAbstractServerSpec(config)
if err != nil {
return nil, newError("unable to parse server specification")
return nil, newError("unable to parse server specification").Base(err)
}
return &SubscriptionServerConfig{
Configuration: serverSpec,