fix: 解决 upstream 配置报错的问题 (#4438)

Refs https://github.com/1Panel-dev/1Panel/issues/4258
This commit is contained in:
zhengkunwang 2024-04-09 14:16:09 +08:00 committed by GitHub
parent 672ef66be8
commit 0b47d692b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
},
}