Fix base path not applied to local rule-sets

This commit is contained in:
世界
2024-10-05 09:28:58 +08:00
parent e7433fe893
commit ce5eec53cb
2 changed files with 5 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ import (
func NewRuleSet(ctx context.Context, router adapter.Router, logger logger.ContextLogger, options option.RuleSet) (adapter.RuleSet, error) {
switch options.Type {
case C.RuleSetTypeLocal:
return NewLocalRuleSet(router, options)
return NewLocalRuleSet(ctx, router, options)
case C.RuleSetTypeRemote:
return NewRemoteRuleSet(ctx, router, logger, options), nil
default: