code ready for selective routing

This commit is contained in:
V2Ray committed 2015-11-22 17:41:52 +01:00
1 parent f4ec19625e
commit 12e72509a5
8 files changed
+106 -24

No files matched your search

+2 -3
View File
@@ -10,9 +10,8 @@ type Rule struct {
OutboundTag string `json:"outboundTag"`
}
func (this *Rule) Tag() *config.DetourTag {
detourTag := config.DetourTag(this.OutboundTag)
return &detourTag
func (this *Rule) Tag() config.DetourTag {
return config.DetourTag(this.OutboundTag)
}
func (this *Rule) Apply(dest v2net.Destination) bool {