diff --git a/backend/utils/nginx/parser/parser.go b/backend/utils/nginx/parser/parser.go index 46a48efa1..5991be0c5 100644 --- a/backend/utils/nginx/parser/parser.go +++ b/backend/utils/nginx/parser/parser.go @@ -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) }, }