mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
actually generate address matcher
This commit is contained in:
parent
d70a888b56
commit
471470a253
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateMatcher(services map[string]definitions.Service, addresses map[string]definitions.Address, match definitions.Match) (string, error) {
|
func GenerateMatcher(services map[string]definitions.Service, addresses map[string]definitions.Address, match definitions.Match) (string, error) {
|
||||||
return GenerateServiceMatcher(services, match), nil
|
return GenerateAddressMatcher(addresses, match) + " " + GenerateServiceMatcher(services, match), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func GenerateServiceMatcher(allServices map[string]definitions.Service, match definitions.Match) string {
|
func GenerateServiceMatcher(allServices map[string]definitions.Service, match definitions.Match) string {
|
||||||
|
|
Loading…
Add table
Reference in a new issue