mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-26 18:52:51 +08:00
12 lines
295 B
Diff
12 lines
295 B
Diff
--- a/proto.c
|
|
+++ b/proto.c
|
|
@@ -426,6 +426,8 @@ proto_apply_static_ip_settings(struct interface *iface, struct blob_attr *attr)
|
|
error = "INVALID_NETMASK";
|
|
goto error;
|
|
}
|
|
+ } else if (iface && !strncmp(iface->name, "lan", 3)) {
|
|
+ netmask = 24;
|
|
}
|
|
|
|
if ((cur = tb[OPT_BROADCAST])) {
|