mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
ppl: bubble up values, bug fixes (#2213)
This commit is contained in:
parent
e138054cb9
commit
bdccd4f785
10 changed files with 218 additions and 118 deletions
|
@ -36,7 +36,7 @@ func (c domainsCriterion) GenerateRule(_ string, data parser.Value) (*ast.Rule,
|
|||
|
||||
switch data.(type) {
|
||||
case parser.String:
|
||||
r.Body = append(r.Body, ast.MustParseExpr(`domain = rule_data`))
|
||||
r.Body = append(r.Body, ast.MustParseExpr(`domain == rule_data`))
|
||||
default:
|
||||
return nil, nil, fmt.Errorf("unsupported value type: %T", data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue