mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
close connection besides logging, when gateway is down
This commit is contained in:
1 parent
fd7db76324
commit
a4607933a4
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -10755,7 +10755,7 @@ void mg_connect_resolved(struct mg_connection *c) {
|
|||||||
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
|
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
|
||||||
l2addr_resolved(c);
|
l2addr_resolved(c);
|
||||||
} else {
|
} else {
|
||||||
MG_ERROR(("No IPv6 gateway, can't connect"));
|
mg_error(c, "No IPv6 gateway, can't connect");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
@@ -10771,7 +10771,7 @@ void mg_connect_resolved(struct mg_connection *c) {
|
|||||||
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
|
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
|
||||||
l2addr_resolved(c);
|
l2addr_resolved(c);
|
||||||
} else {
|
} else {
|
||||||
MG_ERROR(("No gateway, can't connect"));
|
mg_error(c, "No gateway, can't connect");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -2335,7 +2335,7 @@ void mg_connect_resolved(struct mg_connection *c) {
|
|||||||
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
|
memcpy(s->mac, ifp->gw6mac, sizeof(s->mac));
|
||||||
l2addr_resolved(c);
|
l2addr_resolved(c);
|
||||||
} else {
|
} else {
|
||||||
MG_ERROR(("No IPv6 gateway, can't connect"));
|
mg_error(c, "No IPv6 gateway, can't connect");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
@@ -2351,7 +2351,7 @@ void mg_connect_resolved(struct mg_connection *c) {
|
|||||||
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
|
memcpy(s->mac, ifp->gwmac, sizeof(s->mac));
|
||||||
l2addr_resolved(c);
|
l2addr_resolved(c);
|
||||||
} else {
|
} else {
|
||||||
MG_ERROR(("No gateway, can't connect"));
|
mg_error(c, "No gateway, can't connect");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user