immortalwrt/package/network/config/firewall4/patches/002-fix-adding-offloading-device.patch
Jo-Philipp Wich 897a98dd6c
firewall4: fix adding offloading device
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-08 03:25:26 +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 || []));
}