rules.go 303 B

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