mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 09:56:18 -05:00
18 lines
314 B
Go
18 lines
314 B
Go
package testing
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core/app/router/rules"
|
|
)
|
|
|
|
type RouterRuleConfig struct {
|
|
RuleList []*TestRule
|
|
}
|
|
|
|
func (this *RouterRuleConfig) Rules() []rules.Rule {
|
|
rules := make([]rules.Rule, len(this.RuleList))
|
|
for idx, rule := range this.RuleList {
|
|
rules[idx] = rule
|
|
}
|
|
return rules
|
|
}
|