target based upstream options

This commit is contained in:
2025-08-14 14:52:17 +08:00
parent f1fe70386d
commit 6681522678
9 changed files with 245 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ func (p *Perm) Load(cs map[string]Config) {
// loop around the Match map
for addrport, act := range c.Match {
addr, port := splitHostPort(addrport)
addr, port := util.SplitHostPort(addrport)
if port != "" {
insert(net.JoinHostPort(addr, port), act)
} else {
@@ -81,7 +81,7 @@ func (p *Perm) Load(cs map[string]Config) {
}
}
for _, glob := range c.MatchWildcard {
addr, port := splitHostPort(glob.Glob)
addr, port := util.SplitHostPort(glob.Glob)
if port != "" {
log.Printf("loading glob target %s, action %s", glob.Glob, glob.Act)
p_int.match_glob = append(