mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-21 21:19:12 -04:00
config for on demand inbound detour
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user