Closed gregorybrzeski closed 7 years ago
The little dummy server program does this:
try {
var data = parser.parse(msg, rinfo);
self.emit('message', data);
} catch (e) {
if (!self.emit('error', e)) {
throw e;
}
}
So you're supposed to handle the error
event and do with it what you please.
If packet is malformed node-dhcpjs crashes, do you have some thoughts how to handle this ?
Malformed packet is sent like this (x.x.x.x is the ip of the dhcp server):