mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 20:45:28 -05:00
accommodate protobuf compiler change
This commit is contained in:
12
config.go
12
config.go
@@ -5,18 +5,18 @@ import (
|
||||
v2net "v2ray.com/core/common/net"
|
||||
)
|
||||
|
||||
func (v *AllocationStrategyConcurrency) GetValue() uint32 {
|
||||
if v == nil {
|
||||
func (v *AllocationStrategy) GetConcurrencyValue() uint32 {
|
||||
if v == nil || v.Concurrency == nil {
|
||||
return 3
|
||||
}
|
||||
return v.Value
|
||||
return v.Concurrency.Value
|
||||
}
|
||||
|
||||
func (v *AllocationStrategyRefresh) GetValue() uint32 {
|
||||
if v == nil {
|
||||
func (v *AllocationStrategy) GetRefreshValue() uint32 {
|
||||
if v == nil || v.Refresh == nil {
|
||||
return 5
|
||||
}
|
||||
return v.Value
|
||||
return v.Refresh.Value
|
||||
}
|
||||
|
||||
func (v *InboundConnectionConfig) GetAllocationStrategyValue() *AllocationStrategy {
|
||||
|
||||
Reference in New Issue
Block a user