rules.go 379 B

12345678910111213141516171819
  1. package json
  2. import (
  3. "github.com/v2ray/v2ray-core/app/point/config"
  4. v2net "github.com/v2ray/v2ray-core/common/net"
  5. )
  6. type Rule struct {
  7. Type string `json:"type"`
  8. OutboundTag string `json:"outboundTag"`
  9. }
  10. func (this *Rule) Tag() config.DetourTag {
  11. return config.DetourTag(this.OutboundTag)
  12. }
  13. func (this *Rule) Apply(dest v2net.Destination) bool {
  14. return false
  15. }