1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-12 23:18:36 -04:00
v2fly/app/router/rules/config/json/rules.go

20 lines
381 B
Go
Raw Normal View History

2015-11-22 06:05:21 -05:00
package json
import (
v2net "github.com/v2ray/v2ray-core/common/net"
2015-11-29 08:45:32 -05:00
"github.com/v2ray/v2ray-core/shell/point/config"
2015-11-22 06:05:21 -05:00
)
type Rule struct {
Type string `json:"type"`
OutboundTag string `json:"outboundTag"`
}
2015-11-22 11:41:52 -05:00
func (this *Rule) Tag() config.DetourTag {
return config.DetourTag(this.OutboundTag)
2015-11-22 06:05:21 -05:00
}
func (this *Rule) Apply(dest v2net.Destination) bool {
return false
}