Merge pull request #839 from GLYASAI/V5.2

nil pointer ref
This commit is contained in:
黄润豪 2020-09-17 14:34:36 +08:00 committed by GitHub
commit bf6a63f5b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,8 @@ func convert(in map[string]string) []*Rewrite {
}
rewrite := m[sli[0]]
if rewrite == nil {
m[k] = &Rewrite{}
rewrite = &Rewrite{}
m[sli[0]] = rewrite
}
switch sli[1] {
case "regex":