docs: example.dae

This commit is contained in:
mzz2017 2023-02-10 12:02:25 +08:00
parent ab38277022
commit bd55d76753
2 changed files with 5 additions and 2 deletions

View File

@ -78,7 +78,10 @@ func (s *DialerSet) filterHit(dialer *dialer.Dialer, filters []*config_parser.Fu
break
}
case "":
return false, fmt.Errorf(`key of "filter: %v()" cannot be empty`, filter.Name)
if dialer.Name() == param.Val {
subFilterHit = true
break
}
default:
return false, fmt.Errorf(`unsupported filter key "%v" in "filter: %v()"`, param.Key, filter.Name)
}

View File

@ -68,7 +68,7 @@ group {
group2 {
# Filter nodes from global node pool defined by subscription and node section above.
# Pass node names as input of keyword/regex filter.
filter: subtag(regex: '^my_', another_sub) && name(keyword: netflix)
filter: subtag(regex: '^my_', another_sub) && !name(keyword: 'ExpireAt:')
# Select the node with min average of the last 10 latencies from the group for every connection.
policy: min_avg10