config.go 293 B

123456789101112131415
  1. package proxyman
  2. func (s *AllocationStrategy) GetConcurrencyValue() uint32 {
  3. if s == nil || s.Concurrency == nil {
  4. return 3
  5. }
  6. return s.Concurrency.Value
  7. }
  8. func (s *AllocationStrategy) GetRefreshValue() uint32 {
  9. if s == nil || s.Refresh == nil {
  10. return 5
  11. }
  12. return s.Refresh.Value
  13. }