mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Code to detect url of buildandshoot server
This commit is contained in:
parent
6112c88bd4
commit
f543b301dd
1 changed files with 11 additions and 1 deletions
|
@ -43,7 +43,17 @@ module.exports = require('./core').extend({
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
var m = this.options.address.match(/(\d+)\.(\d+)\.(\d+)\.(\d+)/);
|
||||
if(m) {
|
||||
var o1 = parseInt(m[1]);
|
||||
var o2 = parseInt(m[2]);
|
||||
var o3 = parseInt(m[3]);
|
||||
var o4 = parseInt(m[4]);
|
||||
var addr = o1+(o2<<8)+(o3<<16)+(o4<<24);
|
||||
state.raw.url = 'aos://'+addr;
|
||||
}
|
||||
*/
|
||||
self.finish(state);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue