Update default-ipv4-netmask-fallback-24.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-09-19 17:17:18 +08:00
1 parent 682444dfb2
commit 7efa0d21de
1 file changed
+1 -1
@@ -4,7 +4,7 @@
error = "INVALID_NETMASK"; error = "INVALID_NETMASK";
goto error; goto error;
} }
+ } else if (!strcmp(iface->name, "lan")) { + } else if (iface && !strncmp(iface->name, "lan", 3)) {
+ netmask = 24; + netmask = 24;
} }