fix: 解决网站停止之后无法启动的问题 (#602)

This commit is contained in:
zhengkunwang223
2023-04-12 21:52:30 +08:00
committed by GitHub
parent 7f75ea06c2
commit f8432ba521
9 changed files with 72 additions and 39 deletions

View File

@@ -24,8 +24,8 @@ func NewLocation(directive *Directive) *Location {
location.Match = directive.Parameters[0]
return location
} else if len(directive.Parameters) == 2 {
location.Modifier = directive.Parameters[0]
location.Match = directive.Parameters[1]
location.Modifier = directive.Parameters[0]
return location
}
return nil