The new strategy names need to be added to the switch statement:
|
strategyName := "Round-Robin" |
|
switch c.cfg.ResolverBalancingStrategy { |
|
case 0: |
|
strategyName = "Round-Robin Default" |
|
case 1: |
|
strategyName = "Random" |
|
case 2: |
|
strategyName = "Round-Robin" |
|
case 3: |
|
strategyName = "Least Loss" |
|
case 4: |
|
strategyName = "Lowest Latency" |
|
} |
|
c.log.Infof("⚖ <cyan>Resolver Balancing, Strategy:</cyan> <yellow>%s (%d)</yellow>", strategyName, c.cfg.ResolverBalancingStrategy) |
|
# Resolver balancing strategy. |
|
# Allowed values: |
|
# 1 = Random |
|
# 2 = Round Robin |
|
# 3 = Least Loss |
|
# 4 = Lowest Latency |
|
# 5 = Hybrid Score (loss-first + latency-aware) |
|
# 6 = Loss Then Latency (loss shortlist, then latency, then rotate among near-top) |
|
# 7 = Least Loss Top Random (random choice inside the best 10% loss tier) |
|
# 8 = Least Loss Top Round Robin (round-robin inside the best 10% loss tier) |
|
# Modes 3, 4, 5, 6, 7, and 8 use runtime feedback from sends/successes. |
|
RESOLVER_BALANCING_STRATEGY = 2 |
The new strategy names need to be added to the switch statement:
MasterDnsVPN/internal/client/client_utils.go
Lines 573 to 586 in f466bf8
MasterDnsVPN/client_config.toml.simple
Lines 109 to 120 in f466bf8