From f543b301ddd6b276d5014e3ed974b7480b171255 Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Sat, 17 Aug 2013 21:13:40 -0500 Subject: [PATCH] Code to detect url of buildandshoot server --- protocols/buildandshoot.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/protocols/buildandshoot.js b/protocols/buildandshoot.js index f6fe7f0..22f74c3 100644 --- a/protocols/buildandshoot.js +++ b/protocols/buildandshoot.js @@ -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); }); }