mirror of
https://github.com/mullvad/mullvadvpn-app.git
synced 2026-03-13 10:22:35 +08:00
Restore SinglehopPicker spawning to fix test
This commit is contained in:
@@ -47,7 +47,10 @@ struct SinglehopPicker: RelayPicking {
|
||||
obfuscationBypass: obfuscationBypass
|
||||
).obfuscate()
|
||||
|
||||
return try pick(from: supportedObfuscation.obfuscatedRelays)
|
||||
return try SinglehopPicker(
|
||||
obfuscation: supportedObfuscation, tunnelSettings: tunnelSettings,
|
||||
connectionAttemptCount: connectionAttemptCount
|
||||
).pick(from: supportedObfuscation.obfuscatedRelays)
|
||||
} catch let error as NoRelaysSatisfyingConstraintsError where shouldTriggerMultihop(reason: error.reason) {
|
||||
return try MultihopPicker(
|
||||
obfuscation: obfuscation,
|
||||
|
||||
Reference in New Issue
Block a user