mirror of https://github.com/1Panel-dev/1Panel
fix: 解决 upstream 配置报错的问题 (#4438)
Refs https://github.com/1Panel-dev/1Panel/issues/4258pull/4440/head
parent
672ef66be8
commit
0b47d692b8
|
@ -61,7 +61,7 @@ func NewParserFromLexer(lexer *lexer) *Parser {
|
||||||
|
|
||||||
parser.directiveWrappers = map[string]func(*components.Directive) components.IDirective{
|
parser.directiveWrappers = map[string]func(*components.Directive) components.IDirective{
|
||||||
"server": func(directive *components.Directive) components.IDirective {
|
"server": func(directive *components.Directive) components.IDirective {
|
||||||
return parser.wrapServer(directive)
|
return parser.parseUpstreamServer(directive)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue