Skip to content

Commit

Permalink
fixed processing none security subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Nov 25, 2023
1 parent 60eace2 commit b34944d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/subscription/specs/outbound_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down

0 comments on commit b34944d

Please sign in to comment.