Skip to content

Commit

Permalink
2.0-b3
Browse files Browse the repository at this point in the history
  • Loading branch information
BoLaMN committed Dec 15, 2019
1 parent abe8343 commit 2206a91
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/dhcp/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Server = (function(superClass) {

function Server(config) {
var sock, sock6;
Server.__super__.constructor.apply(this, arguments);
Server.__super__.constructor.call(this);
sock = dgram.createSocket({
type: 'udp4',
reuseAddr: true
Expand Down
2 changes: 1 addition & 1 deletion dist/http/cwmp/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports.parse = function(xml) {
);
};

methods = {
exports.methods = methods = {
'cwmp:TransferCompleteResponse': function(res) {
var h, i, ref, w;
i = 0;
Expand Down
19 changes: 19 additions & 0 deletions dist/port.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var net;

net = require('net');

module.exports = function() {
return new Promise(function(resolve, reject) {
var server;
server = net.createServer();
server.unref();
server.on('error', reject);
return server.listen(0, function() {
var port;
port = server.address().port;
return server.close(function() {
return resolve(port);
});
});
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tch-exploit",
"version": "2.0.0-b2",
"version": "2.0.0-b3",
"main": "dist/index.js",
"bin": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/http/cwmp/xml.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports.parse = (xml) ->

"#{name}": obj

export.methods = methods =
exports.methods = methods =

'cwmp:TransferCompleteResponse': (res) ->
i = 0
Expand Down

0 comments on commit 2206a91

Please sign in to comment.