h69k/package/network/config/firewall4/patches/002-fix-adding-offloading-device.patch
2024-09-29 22:35:28 +08:00

14 lines
342 B
Diff

--- a/root/usr/share/ucode/fw4.uc
+++ b/root/usr/share/ucode/fw4.uc
@@ -2101,8 +2101,8 @@ return {
});
}
- if (net.physdev && !e.invert)
- push(related_physdevs, net.physdev);
+ if (net.up && net.device && !e.invert)
+ push(related_physdevs, net.device);
push(related_subnets, ...(net.ipaddrs || []));
}