|  | @@ -6,13 +6,32 @@ import (
 | 
	
		
			
				|  |  |  	v2net "github.com/v2ray/v2ray-core/common/net"
 | 
	
		
			
				|  |  |  	v2netjson "github.com/v2ray/v2ray-core/common/net/json"
 | 
	
		
			
				|  |  |  	proxyconfig "github.com/v2ray/v2ray-core/proxy/common/config"
 | 
	
		
			
				|  |  | +	"github.com/v2ray/v2ray-core/shell/point"
 | 
	
		
			
				|  |  |  )
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +type InboundDetourAllocationConfig struct {
 | 
	
		
			
				|  |  | +	StrategyValue    string `json:"strategy"`
 | 
	
		
			
				|  |  | +	ConcurrencyValue int    `json:"concurrency"`
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +func (this *InboundDetourAllocationConfig) Strategy() string {
 | 
	
		
			
				|  |  | +	return this.StrategyValue
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +func (this *InboundDetourAllocationConfig) Concurrency() int {
 | 
	
		
			
				|  |  | +	return this.ConcurrencyValue
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  type InboundDetourConfig struct {
 | 
	
		
			
				|  |  | -	ProtocolValue  string               `json:"protocol"`
 | 
	
		
			
				|  |  | -	PortRangeValue *v2netjson.PortRange `json:"port"`
 | 
	
		
			
				|  |  | -	SettingsValue  json.RawMessage      `json:"settings"`
 | 
	
		
			
				|  |  | -	TagValue       string               `json:"tag"`
 | 
	
		
			
				|  |  | +	ProtocolValue   string                         `json:"protocol"`
 | 
	
		
			
				|  |  | +	PortRangeValue  *v2netjson.PortRange           `json:"port"`
 | 
	
		
			
				|  |  | +	SettingsValue   json.RawMessage                `json:"settings"`
 | 
	
		
			
				|  |  | +	TagValue        string                         `json:"tag"`
 | 
	
		
			
				|  |  | +	AllocationValue *InboundDetourAllocationConfig `json:"allocate"`
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +func (this *InboundDetourConfig) Allocation() point.InboundDetourAllocationConfig {
 | 
	
		
			
				|  |  | +	return this.AllocationValue
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  func (this *InboundDetourConfig) Protocol() string {
 |