Comparing version 0.2.9 to 0.2.10
@@ -27,3 +27,3 @@ | ||
// `sysctl -w net.inet.ip.forwarding=1` | ||
s.close(); | ||
}); | ||
@@ -30,0 +30,0 @@ |
@@ -61,2 +61,10 @@ | ||
s.on("close", function () { | ||
console.log('close'); | ||
}); | ||
s.listen(); | ||
process.on('SIGINT', () => { | ||
s.close(); | ||
}); |
/** | ||
* @license DHCP.js v0.2.3 28/06/2017 | ||
* @license DHCP.js v0.2.10 28/06/2017 | ||
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/ | ||
@@ -104,2 +104,6 @@ * | ||
sock.on('close', function() { | ||
self.emit('close'); | ||
}); | ||
this._sock = sock; | ||
@@ -352,3 +356,3 @@ this._conf = config; | ||
// INADDR_BROADCAST : 68 <- SERVER_IP : 67 | ||
this._send(INADDR_BROADCAST, ans); | ||
this._send(this.config('broadcast'), ans); | ||
@@ -398,3 +402,3 @@ }, | ||
// INADDR_BROADCAST : 68 <- SERVER_IP : 67 | ||
this._send(INADDR_BROADCAST, ans); | ||
this._send(this.config('broadcast'), ans); | ||
}, | ||
@@ -427,3 +431,3 @@ sendNak: function(req) { | ||
// Send the actual data | ||
this._send(INADDR_BROADCAST, ans); | ||
this._send(this.config('broadcast'), ans); | ||
}, | ||
@@ -451,2 +455,6 @@ | ||
close: function(callback) { | ||
this._sock.close(callback); | ||
}, | ||
_send: function(host, data) { | ||
@@ -520,2 +528,6 @@ | ||
sock.on('close', function() { | ||
self.emit('close'); | ||
}); | ||
this._sock = sock; | ||
@@ -898,2 +910,6 @@ this._conf = config || {}; | ||
close: function(callback) { | ||
this._sock.close(callback); | ||
}, | ||
_send: function(host, data) { | ||
@@ -900,0 +916,0 @@ |
/** | ||
* @license DHCP.js v0.2.3 28/06/2017 | ||
* @license DHCP.js v0.2.10 28/06/2017 | ||
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* @license DHCP.js v0.2.3 28/06/2017 | ||
* @license DHCP.js v0.2.10 28/06/2017 | ||
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/ | ||
@@ -280,2 +280,3 @@ * | ||
} else { | ||
this._r += len; | ||
console.error('Type ' + opt + ' not known'); | ||
@@ -282,0 +283,0 @@ } |
{ | ||
"name": "dhcp", | ||
"title": "dhcp", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"homepage": "https://github.com/infusion/node-dhcp", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73624
2115
16