Skip to content

Commit

Permalink
fix: 解决 upstream 配置报错的问题 (#4438)
Browse files Browse the repository at this point in the history
Refs #4258
  • Loading branch information
zhengkunwang223 authored Apr 9, 2024
1 parent 672ef66 commit 0b47d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils/nginx/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewParserFromLexer(lexer *lexer) *Parser {

parser.directiveWrappers = map[string]func(*components.Directive) components.IDirective{
"server": func(directive *components.Directive) components.IDirective {
return parser.wrapServer(directive)
return parser.parseUpstreamServer(directive)
},
}

Expand Down

0 comments on commit 0b47d69

Please sign in to comment.