File tree 2 files changed +4
-4
lines changed
mullvad-relay-selector/tests
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ fn test_wireguard_retry_order() {
391
391
let relay_selector = default_relay_selector ( ) ;
392
392
for ( retry_attempt, query) in WIREGUARD_RETRY_ORDER . iter ( ) . enumerate ( ) {
393
393
let relay = relay_selector
394
- . get_relay ( retry_attempt, talpid_types:: net:: IpAvailability :: IpV6 )
394
+ . get_relay ( retry_attempt, talpid_types:: net:: IpAvailability :: IpV4AndIpV6 )
395
395
. unwrap_or_else ( |_| panic ! ( "Retry attempt {retry_attempt} did not yield any relay" ) ) ;
396
396
// For each relay, cross-check that the it has the expected tunnel protocol
397
397
let tunnel_type = tunnel_type ( & unwrap_relay ( relay. clone ( ) ) ) ;
@@ -450,7 +450,7 @@ fn test_openvpn_retry_order() {
450
450
451
451
for ( retry_attempt, query) in OPENVPN_RETRY_ORDER . iter ( ) . enumerate ( ) {
452
452
let relay = relay_selector
453
- . get_relay ( retry_attempt, talpid_types:: net:: IpAvailability :: IpV6 )
453
+ . get_relay ( retry_attempt, talpid_types:: net:: IpAvailability :: IpV4AndIpV6 )
454
454
. unwrap_or_else ( |_| panic ! ( "Retry attempt {retry_attempt} did not yield any relay" ) ) ;
455
455
// For each relay, cross-check that the it has the expected tunnel protocol
456
456
let tunnel_type = tunnel_type ( & unwrap_relay ( relay. clone ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ pub fn all_of_the_internet() -> Vec<ipnetwork::IpNetwork> {
572
572
pub enum Connectivity {
573
573
/// Host is offline
574
574
Offline ,
575
- /// The connectivity status is unknown, but persumed to be online
575
+ /// The connectivity status is unknown, but presumed to be online
576
576
PresumeOnline ,
577
577
/// Host is online with the given IP versions available
578
578
Online ( IpAvailability ) ,
@@ -597,7 +597,7 @@ impl Connectivity {
597
597
/// If no IP4 nor IPv6 routes exist, we have no way of reaching the internet
598
598
/// so we consider ourselves offline.
599
599
pub fn is_offline ( & self ) -> bool {
600
- matches ! ( self , Connectivity :: Offline )
600
+ self == Connectivity :: Offline
601
601
}
602
602
603
603
/// Whether IPv4 connectivity seems to be available on the host.
You can’t perform that action at this time.
0 commit comments