Skip to content

Commit

Permalink
fruity: Relax NCM interface presence check
Browse files Browse the repository at this point in the history
One operational network interface is sufficient.
  • Loading branch information
oleavr committed Nov 6, 2024
1 parent 85de7a0 commit 667c749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fruity/device-monitor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ namespace Frida.Fruity {

public static async NcmPeer locate (UsbDevice usb_device, Cancellable? cancellable) throws Error, IOError {
var device_ifaddrs = detect_ncm_ifaddrs_on_system (usb_device);
if (device_ifaddrs.size == 2)
if (!device_ifaddrs.is_empty)
return yield locate_on_system_netifs (device_ifaddrs, cancellable);
return yield establish_using_our_driver (usb_device, cancellable);
}
Expand Down

0 comments on commit 667c749

Please sign in to comment.