Compare commits

...
2 Commits
Author SHA1 Message Date
Sergio R. Caprile bc5afa4519 Merge pull request #3731 from cesanta/iserror
close connection besides logging, when gateway is down
2026-10-12 17:52:09 -03:00
Sergio R. Caprile a4607933a4 close connection besides logging, when gateway is down 2026-10-12 17:47:25 -03:00
2 changed files with 4 additions and 4 deletions

No files matched your search

+2 -2
View File
@@ -10755,7 +10755,7 @@ void mg_connect_resolved(struct mg_connection *c) {
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
l2addr_resolved(c);
} else {
MG_ERROR(("No IPv6 gateway, can't connect"));
mg_error(c, "No IPv6 gateway, can't connect");
}
#endif
} else {
@@ -10771,7 +10771,7 @@ void mg_connect_resolved(struct mg_connection *c) {
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
l2addr_resolved(c);
} else {
MG_ERROR(("No gateway, can't connect"));
mg_error(c, "No gateway, can't connect");
}
}
}
+2 -2
View File
@@ -2335,7 +2335,7 @@ void mg_connect_resolved(struct mg_connection *c) {
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
l2addr_resolved(c);
} else {
MG_ERROR(("No IPv6 gateway, can't connect"));
mg_error(c, "No IPv6 gateway, can't connect");
}
#endif
} else {
@@ -2351,7 +2351,7 @@ void mg_connect_resolved(struct mg_connection *c) {
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
l2addr_resolved(c);
} else {
MG_ERROR(("No gateway, can't connect"));
mg_error(c, "No gateway, can't connect");
}
}
}