Use per-source address configs

This commit is contained in:
2025-03-27 22:25:26 +08:00
parent 5d48ed258d
commit 5896d5fcd2
2 changed files with 76 additions and 38 deletions

View File

@@ -56,7 +56,7 @@ func (a Action) MarshalText() ([]byte, error) {
return []byte(name), nil
}
// Config is a list of address and actions.
// Config is a list of address and actions, for each source address.
// It can just be Marshal/Unmarshaled into/from json.
type Config struct {
DefaultAction Action // What we should do when no action is matched.