rules.go 405 B

1234567891011121314151617181920
  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. detourTag := config.DetourTag(this.OutboundTag)
  12. return &detourTag
  13. }
  14. func (this *Rule) Apply(dest v2net.Destination) bool {
  15. return false
  16. }