config for on demand inbound detour

This commit is contained in:
v2ray committed 2015-12-28 23:17:38 +01:00
1 parent 96053d9e12
commit 71c70416f5
3 files changed
+55 -6

No files matched your search

+20 -2
View File
@@ -52,10 +52,28 @@ func (this *PortRange) To() v2net.Port {
return this.ToValue
}
type InboundDetourAllocationConfig struct {
StrategyValue string
ConcurrencyValue int
}
func (this *InboundDetourAllocationConfig) Strategy() string {
return this.StrategyValue
}
func (this *InboundDetourAllocationConfig) Concurrency() int {
return this.ConcurrencyValue
}
type InboundDetourConfig struct {
*ConnectionConfig
PortRangeValue *PortRange
TagValue string
PortRangeValue *PortRange
TagValue string
AllocationStrategy *InboundDetourAllocationConfig
}
func (this *InboundDetourConfig) Allocation() point.InboundDetourAllocationConfig {
return this.AllocationStrategy
}
func (this *InboundDetourConfig) Tag() string {